XML Schema for config value typecasting

Mehr
3 Monate 2 Wochen her #169458 von Bigred01
Bigred01 erstellte das Thema XML Schema for config value typecasting
I absolutely love the new lime. I have been living with 2.5 for years now and am finally re-writing all of our custom junk for the newest version. I have ran into an issue on php 7.2 for question theme options. readonly_when_active false is a string so its being validated as true and the advanced option inputs are loading disabled once the survey is live. It was an easy fix but made me think that since themes at template or question level all use the xml configs, maybe a schema for setting proper types might be a good idea.

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
3 Monate 1 Woche her - 3 Monate 1 Woche her #169694 von DenisChenu
DenisChenu antwortete auf das Thema: XML Schema for config value typecasting
Empty string is false secure.php.net/manual/en/language.types.boolean.php

Then set default value to "" send false, no ?

But more : default is set (or must be set) here : github.com/LimeSurvey/LimeSurvey/blob/36...onAttribute.php#L305

Then : not send it in your xml and you have your false. Send it to 1 or " " return true.

PS : but you're right , a clean schema is something to be done :)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
Letzte Änderung: 3 Monate 1 Woche her von DenisChenu.

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Jetzt loslegen!

Melden Sie sich jetzt an, und erstellen Sie in wenigen Minuten Ihre erste Umfrage.

Account einrichten

Abonnieren Sie unseren Newsletter

Abonnieren Sie unseren Newsletter für alle Neuigkeiten rund um LimeSurvey
captcha