Project @ iMath: Issueshttps://project.math.uzh.ch/https://project.math.uzh.ch/favicon.ico?16668783892024-03-06T19:06:54ZProject @ iMath
Redmine QFQ - Bug #18094 (Ready to sync (develop)): Loading Fabric without Form not working anymorehttps://project.math.uzh.ch/issues/180942024-03-06T19:06:54ZBenjamin Baerbenjamin.baer@math.uzh.ch
<p>Multi Form has broken the old way to load fabric without form.</p>
<p>Adding a new way to load fabric without any forms.</p> QFQ - Bug #18058 (Ready to sync (develop)): Monitor not working: missing JS filehttps://project.math.uzh.ch/issues/180582024-03-05T07:39:47ZElias Villiger
<p>Console Error: Failed to load resource <code>/typo3conf/ext/qfq/Resources/Public/JavaScript/GetFileContent.js</code></p>
<p>Datei wird durch npm run build nicht in <code>Resources/Public/JavaScript</code> kopiert, vermutlich sonst irgendwo integriert oder gar nicht mehr eingebunden?</p> QFQ - Bug #18031 (In Progress): PHPUnit-Tests funktionieren nicht mit der neuen PHP-Versionhttps://project.math.uzh.ch/issues/180312024-03-01T13:15:04ZZhoujie Li
<p>Wir sind auf ein Problem gestossen, bei dem unsere bestehenden PHPUnit-Tests nach dem Update auf die neueste PHP-Version nicht wie erwartet ausgeführt werden. Dies hat zu mehreren Testfehlern geführt.</p>
<p>Es wäre sinnvoll, die Tests zu überarbeiten und zu refaktorisieren.</p> QFQ - Bug #17992 (New): filepond: Filter on file extension is case dependent https://project.math.uzh.ch/issues/179922024-02-25T10:45:48ZCarsten Rosecarsten.rose@math.uzh.ch
<ul>
<li>In <code>Form.parameter.accept = image/*,application/pdf,text/plain,.R,.r,.m,.rmd,.rnw,.zip</code> gesetzt.</li>
<li>Eine Datei ausgewaehlt <code>test01.R</code> (das '.R' ist gross geschrieben)</li>
</ul>
<p><img src="https://project.math.uzh.ch/attachments/download/9328/clipboard-202402251137-qeppx.png" alt="" /></p>
<ul>
<li>Macht filepond wirklich eine Konvertierung auf mimetype? In dem Fall haette `text/plain` greifen muessen!</li>
</ul>
<p><img src="https://project.math.uzh.ch/attachments/download/9329/clipboard-202402251143-gqmnf.png" alt="" /></p>
<p>Im <code>accept</code> zusaetzlich `.R` anzugeben loesst das Problem nicht (es ist kein Mimetype in QFQ hinterlegt).</p>
<p>Achtung: fuer die rmd, rnw, r - Files gibt es alle moeglichen Schreibweisen, die User sind sehr kreativ.</p> QFQ - Bug #17991 (New): filepond: broken filter in file dialog boxhttps://project.math.uzh.ch/issues/179912024-02-25T10:30:21ZCarsten Rosecarsten.rose@math.uzh.ch
<p><img src="https://project.math.uzh.ch/attachments/download/9323/clipboard-202402251120-9qtxg.png" alt="" /><br /><pre>
accept = image/*,application/pdf,text/plain,.r,.m,.nb,.rmd,.rnw,.zip,.dat
</pre></p>
<p>Brave: Die Files werden nicht angezeigt:</p>
<p><img src="https://project.math.uzh.ch/attachments/download/9324/clipboard-202402251121-gc9vx.png" alt="" /></p>
<p>Wird der Filter auf 'All Files' gesetzt koennen die Files ausgewaehlt werden:</p>
<p><img src="https://project.math.uzh.ch/attachments/download/9325/clipboard-202402251123-9xavd.png" alt="" /></p>
<p>Firefox das gleiche:</p>
<p><img src="https://project.math.uzh.ch/attachments/download/9326/clipboard-202402251125-2i1lx.png" alt="" /></p>
<p>Mit <code>uploadType=v1</code> werden die Files korrekt angezeigt (Brave & FF)</p>
<p><img src="https://project.math.uzh.ch/attachments/download/9327/clipboard-202402251128-aluit.png" alt="" /></p> QFQ - Support #17880 (New): QFQ Exception: a) stacktrace not in support, b) Underline SQL error https://project.math.uzh.ch/issues/178802024-02-12T19:56:47ZCarsten Rosecarsten.rose@math.uzh.ch
<p><img src="https://project.math.uzh.ch/attachments/download/9220/clipboard-202402122055-9vcu4.png" alt="" /></p> QFQ - Bug #17785 (New): undefined: Download::$storeSystemhttps://project.math.uzh.ch/issues/177852024-02-01T17:06:09ZCarsten Rosecarsten.rose@math.uzh.chQFQ - Bug #17725 (New): Form > forwardPage - value from a FE, FE column not in primary table, the...https://project.math.uzh.ch/issues/177252024-01-28T18:21:23ZCarsten Rosecarsten.rose@math.uzh.ch
<p>Fuer einen Wizard haette CR gerne ein paar Checkboxen in einem Form uebergeben an einen Page/Action Report.</p>
<p>Das scheint aber nicht wie erwartet zu funktionieren<br /><pre>
{{pageSlug:T}}?action=duplicate&v_id_new={{id:R}}&m_id={{m_id:S0}}&v_id_src={{v_id_src:S0}}
</pre></p> QFQ - Bug #17693 (New): Multi DB Setup (MY): Form > Exception > Edit Form Element: record lock mi...https://project.math.uzh.ch/issues/176932024-01-24T12:48:53ZCarsten Rosecarsten.rose@math.uzh.ch
<p>Wird in einer Form bei einer Fehlermeldung auf 'Edit FormElement' geklickt, kann das aufgerufene Form anschliessend nicht gespeichert werden:</p>
<p><img src="https://project.math.uzh.ch/attachments/download/9071/clipboard-202401241348-ihhpz.png" alt="" /></p> QFQ - Bug #17384 (New): Thumbnail: touch(): Unable to create filehttps://project.math.uzh.ch/issues/173842023-11-29T15:20:10ZCarsten Rosecarsten.rose@math.uzh.ch
<ul>
<li>Es fehlte einfach das Verzeichnis <code>/var/www/html/uplan/fileadmin/protected/qfqThumbnail</code>.</li>
</ul>
<pre>
UniqId:: 656738c8aceb0
------------------------------------------------
toUser:: General error - please report.
support:: File: /var/www/html/uplan/typo3conf/ext/qfq/Classes/Core/Report/Thumbnail.php / Line: 178 / touch(): Unable to create file /var/www/html/uplan/fileadmin/protected/qfqThumbnail/e69da330fa0d81e6488fdcb245704208.png because No such file or directory
Timestamp:: 2023.11.29 14:12:40 +0100
Code:: 2
Message:: General error - please report.
Type:: Code Exception
current sip:: array (
'_b64_download' => 'F:/var/www/html/uplan/fileadmin/protected/qfqThumbnail/e69da330fa0d81e6488fdcb245704208.png|T:fileadmin/protected/application/25/_fk.CVProjektleiter.pdf|W:500x|r:7|s',
'mode' => 'thumbnail',
'r' => '0',
's' => '656738c86369f',
'urlparam' => '_b64_download=RjovdmFyL3d3dy9odG1sL3VwbGFuL2ZpbGVhZG1pbi9wcm90ZWN0ZWQvcWZxVGh1bWJuYWlsL2U2OWRhMzMwZmEwZDgxZTY0ODhmZGNiMjQ1NzA0MjA4LnBuZ3xUOmZpbGVhZG1pbi9wcm90ZWN0ZWQvYXBwbGljYXRpb24vMjUvX2ZrLkNWUHJvamVrdGxlaXRlci5wZGZ8Vzo1MDB4fHI6N3xz&mode=thumbnail&r=0',
)
Page Id:: -
Content Id:: -
FE User:: crose
File:: /var/www/html/uplan/typo3conf/ext/qfq/Classes/Core/Exception/ErrorHandler.php
Line:: 42
CWD:: /var/www/html/uplan
IP Address:: 192.168.133.208
Stacktrace::
#1 /var/www/html/uplan/typo3conf/ext/qfq/Classes/Core/Report/Thumbnail.php(178): touch()
#2 /var/www/html/uplan/typo3conf/ext/qfq/Classes/Core/Report/Thumbnail.php(153): IMATHUZH\Qfq\Core\Report\Thumbnail->createThumbnail()
#3 /var/www/html/uplan/typo3conf/ext/qfq/Classes/Core/Report/Thumbnail.php(92): IMATHUZH\Qfq\Core\Report\Thumbnail->getOrCreateThumbnail()
#4 /var/www/html/uplan/typo3conf/ext/qfq/Classes/Core/Report/Download.php(864): IMATHUZH\Qfq\Core\Report\Thumbnail->process()
#5 /var/www/html/uplan/typo3conf/ext/qfq/Classes/Core/Report/Download.php(724): IMATHUZH\Qfq\Core\Report\Download->doThumbnail()
#6 /var/www/html/uplan/typo3conf/ext/qfq/Classes/Core/Report/Download.php(973): IMATHUZH\Qfq\Core\Report\Download->doElements()
#7 /var/www/html/uplan/typo3conf/ext/qfq/Classes/Api/download.php(29): IMATHUZH\Qfq\Core\Report\Download->process()
==================================================
</pre> QFQ - Bug #17257 (New): Migrate QFQ system tables: set default valuehttps://project.math.uzh.ch/issues/172572023-11-09T20:42:54ZCarsten Rosecarsten.rose@math.uzh.chQFQ - Bug #17215 (New): QFQ Doku: Encode ‘none’, ‘specialchar’ - 'single tick' fehlthttps://project.math.uzh.ch/issues/172152023-10-31T14:40:45ZCarsten Rosecarsten.rose@math.uzh.ch
<p><img src="https://project.math.uzh.ch/attachments/download/8698/clipboard-202310311539-0oqxi.png" alt="" /></p>
<p><img src="https://project.math.uzh.ch/attachments/download/8699/clipboard-202310311540-zhejw.png" alt="" /></p> QFQ - Bug #17160 (Ready to sync (develop)): TinyMCE: Do not convert to auto urlhttps://project.math.uzh.ch/issues/171602023-10-24T11:56:08ZBenjamin Baerbenjamin.baer@math.uzh.ch
<p>Problem: #17159</p>
<p>Can be configured in url-handling:<br /><a class="external" href="https://www.tiny.cloud/docs/configure/url-handling/">https://www.tiny.cloud/docs/configure/url-handling/</a></p>
<p>Updated tinymce helper to always set it to to false:</p>
<p><a class="external" href="https://git.math.uzh.ch/typo3/qfq/-/merge_requests/628">https://git.math.uzh.ch/typo3/qfq/-/merge_requests/628</a></p> QFQ - Bug #16965 (New): Unhandled exception on SQL queryhttps://project.math.uzh.ch/issues/169652023-09-28T12:36:23ZCarsten Rosecarsten.rose@math.uzh.chQFQ - Bug #16900 (New): Error display behaviourhttps://project.math.uzh.ch/issues/169002023-09-19T14:12:18ZBenjamin Baerbenjamin.baer@math.uzh.ch
<p>Error reporting in QFQ with setting production = yes; and the debug display error values set to auto:</p>
<p>when not loggend in to the backend:<br /><img src="https://project.math.uzh.ch/attachments/download/8421/error_notloggedin.png" alt="" /></p>
<p>when logged in:<br /><img src="https://project.math.uzh.ch/attachments/download/8420/error_loggedin.png" alt="" /></p>
<p>Also maybe an example of the stack trace showing. Here to cause the error I simply added an i before the first select statement.</p> QFQ - Bug #16830 (Feedback): restClient Special Column Exception Handlinghttps://project.math.uzh.ch/issues/168302023-09-05T14:06:51ZPhilipp Gröbelbauer
<p>The _restClient special column throws an exception if the call fails (e.g. server not reachable/ wrong url).</p>
<p>Example Call:</p>
<p><code>SELECT CONCAT('n:{{MY_URL:Y}}/typo3conf/ext/qfq/Classes/Api/rest.php/lectureREST|content:{"module": "', ev.module, '", "semester":"', sem.short, '", "eventType":"', IF(ev.eventType = 'Lecture', 'VL', IF(ev.eventType = 'Exercise', 'UE', '')),'"}|method:GET') AS '_restClient|_hide'</code></p>
<p>Can lead to an exeption that will take up the whole page:</p>
<p><img src="https://project.math.uzh.ch/attachments/download/8342/clipboard-202309051600-0p7po.png" alt="" /></p>
<p>The exception should not interfere with the rest of the page!<br />The user can already read if success/error from {{http-status:C}} and react to that. The exception could result in a status 500.</p> QFQ - Bug #16506 (In Progress): Error sendmail failed: Umlaute in FROM ADDRESShttps://project.math.uzh.ch/issues/165062023-06-30T07:34:07ZCarsten Rosecarsten.rose@math.uzh.ch
<ul>
<li>Wenn QFQ Mails sendet und in der FROM Adresse im Realname ein Umlaut vorkommt, verweigert Oultook die Annahme.</li>
<li>QFQ anpassen das alles Felder (TO, CC, BCC, From) auch UTF8 kodiert werden.</li>
</ul>
<pre>
UniqId:: 6486fd7720bd5
------------------------------------------------
toUser:: "Error sendmail failed
support:: [cmd=/var/www/html/typo3conf/ext/qfq/Classes/External/sendEmail -f "Universitäre Lehrförderung <lehrkredit-smtp@math.uzh.ch>" -t "sabine.schneider@ds.uzh.ch" -o message-charset="utf-8" -l "/var/www/html/fileadmin/protected/log/mail.log" -u "=?UTF-8?Q?Bitte=20um=20Best=C3=A4tigung:=20=20Antrag=20Lehrkredit?=
=?UTF-8?Q?=20durch=20Frau=20Dr.=20Daniela=20Fuhrmann?=" -m "Sehr geehrte Frau/Herr Sabine Schneider
Wir möchten Sie bitten den Lehrkredit Antrag von Frau Dr. Daniela Fuhrmann zu begutachten und zu bestätigen oder abzulehnen.
Bitte loggen Sie sich dazu auf der Lehrkredit Homepage ein unter:
</pre> QFQ - Bug #16344 (New): 'M:file' hat keinen Einfluss im sendmail (.xlsx / .docx kommt als .zip an)https://project.math.uzh.ch/issues/163442023-06-02T14:50:47ZPhilipp Gröbelbauer
<p>Auf webwork16/grc wurden Mail Templates angelegt mit mehreren Attachments.<br />Wird das Mail versendet, dann kommt ein .docx Attachment als .zip Datei an. <br />Das M:file hat dabei keinen Einfluss.<br />Das verarbeitete sendmail lautet:</p>
<pre>
'f:Marco Toscano
|t:philipp.groebelbauer@math.uzh.ch
||s:Travel Grant accepted!
|b:Dear Mr. Gröbelbauer...
|d:DecisionLetter.pdf
|p:id=letterbody&noId=9397&pdIdReceiver=1982&reId=1309&_sip=1&--margin-top=50mm&--margin-bottom=20mm&--header-html=https://webwork16.math.uzh.ch/grc/dev/?id=letterheade&--footer-right="Page: [page]/[toPage]"&--footer-font-size=8&--footer-spacing=10
|d:Expenses_Form_Travel_Grant.xlsx
|M:file
|F:fileadmin/protected/mailing/travelgrants/9394_10569_Expenses_form_Travel_Grant.xlsx
|d:Flightrecord_Travel Grant
|M:file
|F:fileadmin/protected/mailing/travelgrants/9395_10584_Flightrecord_Travel_Grant.docx
|d:Instructions_expense_form_extern
|M:file
|F:fileadmin/protected/mailing/travelgrants/9396_10589_Instructions_expense_form_extern.png
|g:615
|x:1309' AS _sendmail
</pre> QFQ - Bug #16343 (New): QFQ/GMX: smtp recjects if subject contains umlaut and is not proper encodedhttps://project.math.uzh.ch/issues/163432023-06-02T14:50:23ZCarsten Rosecarsten.rose@math.uzh.ch
<p><img src="https://project.math.uzh.ch/attachments/download/7998/clipboard-202306021647-yhc8l.png" alt="" /></p>
<p><img src="https://project.math.uzh.ch/attachments/download/7999/clipboard-202306021647-sv9ak.png" alt="" /></p> QFQ - Bug #15108 (New): Wert in Note nach speichern nicht aktualisierthttps://project.math.uzh.ch/issues/151082022-12-05T15:46:11ZJan Haller
<p>Testformular: Medtool>Admin>Setup>Form>note_test</p>
<p>Text in Note (Notiz) wird mit Query abgefragt. Liefert die Query kein Resultat, bleibt nach dem Speichern der vorherige Wert erhalten. Die Seite muss neu geladen werden, damit der Inhalt entfernt wird.</p> QFQ - Bug #15013 (New): Excel Import does not work with multiple importRegionhttps://project.math.uzh.ch/issues/150132022-11-10T15:56:12ZPhilipp Gröbelbauer
<p>Aus einem Excel sollen die Spalten A,B und D importiert werden.</p>
<p>A soll in die Spalte 'klasse', B in die Spalte 'stufe' und D in die Spalte 'grundlohn'.<br />Formelement.parameter wurde wie folgt gesetzt:</p>
<p>importToTable = lohn<br />importToColumns = klasse, stufe, grundlohn<br />importRegion = 1,A,6,B,904|1,D,6,D,904<br />importMode = append <br />importType = auto<br />accept = *<br />fileDestination = fileadmin/protected/imports/pay_regulations.xlsx<br />fileReplace = always</p>
<p>Spalten A und B funktionieren korrekt. Die Spalte D, welche in einer zweiten 'importRegion' angegeben wurde, wird jedoch nach 'klasse' importiert, anstatt nach 'grundlohn'.<br />Wenn eine 2. importRegion angegeben wird, dann sollte nicht auf die 1. angegebene DB-Spalte zurückgesprungen werden!</p> QFQ - Bug #14531 (New): slaveId, sqlInsert and sqlUpdate should be renamedhttps://project.math.uzh.ch/issues/145312022-07-28T16:06:41ZNicola Chiapolini
<p><code>slaveId</code> , <code>sqlInsert</code> and <code>sqlUpdate</code> are a lot more generic then their name suggests. They should probably be called <code>condition</code>, <code>sqlIf</code>, <code>sqlElse</code></p> QFQ - Bug #14530 (New): Variables: Action 'X' does not output Type messagehttps://project.math.uzh.ch/issues/145302022-07-26T18:41:06ZNicola Chiapolini
<p>Subject says it all - makes debugging really annoying...</p>
<p><code>4.sql = SELECT "{{la_supervisr:R::X::hallo}}"</code></p>
<p>gives<br /><img src="https://project.math.uzh.ch/attachments/download/6414/clipboard-202207262040-ssmzv.png" alt="" /></p> QFQ - Bug #14508 (New): _exec: output will not be passed downhttps://project.math.uzh.ch/issues/145082022-07-12T10:48:54ZBenjamin Baerbenjamin.baer@math.uzh.ch
<p>The output of _exec can't be passed down to fields below, even with AS '_exec|column'</p>
<p>{{column}} will return the command, not the output
{{&column}} will return empty, not the output</p>
<p>BTW: folgender Code verhaelt sich korrekt</p>
<pre>
10.sql = SELECT 'echo "Hello World"' AS '_exec'
20.sql = SELECT '{{10.exec}}'
</pre> QFQ - Bug #14322 (New): Form Load: by default no scroll (save & close should be visible)https://project.math.uzh.ch/issues/143222022-06-14T12:14:04ZCarsten Rosecarsten.rose@math.uzh.ch
<p>Wird ein Form geoeffnet (egal ob mit/ohne 'remember pill'), scrollt der Browser automatisch den Anker an die obere Browserfensterkante.</p>
<p>Das ist nervig (User fragt sich 'warum scrollt der Browser') und vor allem sieht man die Bedienelemente Save/Close nicht und wird damit gezwungen zurueck nach oben zu scrollen.</p>
<p>Bitte moegliche Loesungen überlegen und diese mit CR besprechen.</p>
<p>Dieses Verhalten ist vermutlich reingekommen als wir das Feature 'bring pill with missing required to front' implementiert haben (<a class="issue tracker-1 status-5 priority-4 priority-high2 closed behind-schedule" title="Bug: Missing required: Pill/Input not 'bring to front' (Closed)" href="https://project.math.uzh.ch/issues/6232">#6232</a>).</p> QFQ - Bug #14283 (Priorize): HEIC / HEIF convert doesn't triggerhttps://project.math.uzh.ch/issues/142832022-06-07T11:52:16ZBenjamin Baerbenjamin.baer@math.uzh.ch
<p>Related to #14255 - Konvertierung wird nicht angestossen nach upload.</p>
<p>Beispiel auf: <a class="external" href="https://exam.math.uzh.ch">https://exam.math.uzh.ch</a> > Test Exam (als User bbaer)<br />Uploaded file location: fileadmin/protected/exam/2/student/1/22014.HEIC</p>
<p>File wird nicht angezeigt. Beim ersten laden der Seite die die Thumbnails anzeigt, dauert das laden ewig (evtl haengt da was im konvertierungsprozess?)</p>
<p>Konvertieren von hand per heic-convert hat funktioniert bei allen dateien aus #14255 - angehaengte Beispiele sind umbenannt von jpg -> heic und heif.</p>
<p>Falls problem behoben wird / gefunden wird, muss ich danach auf exam noch den Standard Upload anpassen und .heic/.heif anfuegen, bitte Ticket zurueck geben.</p> QFQ - Bug #14175 (Priorize): Opening a form with no QFQ Session cookie failshttps://project.math.uzh.ch/issues/141752022-05-08T21:39:32ZCarsten Rosecarsten.rose@math.uzh.ch
<p>Wird eine Passwort Reset Mail mit einer URL+Token versendet, die direkt ein Form oeffnet, gibt es einen Fehler:</p>
<pre>
==================================================
UniqId:: 6278304af162c
------------------------------------------------
toUser:: General error - please report.
support:: File: /var/www/html/forkred/typo3conf/ext/qfq/Classes/Core/Form/Dirty.php / Line: 369 / Undefined index: cookieQfq
Timestamp:: 2022.05.08 23:04:10 +0200
Code:: 8
Message:: General error - please report.
Type:: Code Exception
current sip:: array (
'r' => '7322007',
'form' => 'setPassword',
's' => '6278304af0e35',
)
Page Id:: 68
Content Id:: 89
File:: /var/www/html/forkred/typo3conf/ext/qfq/Classes/Core/Exception/ErrorHandler.php
Line:: 42
CWD:: /var/www/html/forkred
IP Address:: 192.168.133.205
Stacktrace::
#0 /var/www/html/forkred/typo3conf/ext/qfq/Classes/Core/Form/Dirty.php(369): IMATHUZH\Qfq\Core\Exception\ErrorHandler::exception_error_handler(8, 'Undefined index...', '/var/www/html/f...', 369, Array)
#1 /var/www/html/forkred/typo3conf/ext/qfq/Classes/Core/QuickFormQuery.php(496): IMATHUZH\Qfq\Core\Form\Dirty->getCheckDirty('person', '7322007', Array, '')
#2 /var/www/html/forkred/typo3conf/ext/qfq/Classes/Core/QuickFormQuery.php(282): IMATHUZH\Qfq\Core\QuickFormQuery->doForm('form_load')
#3 /var/www/html/forkred/typo3conf/ext/qfq/Classes/Controller/QfqController.php(46): IMATHUZH\Qfq\Core\QuickFormQuery->process()
==================================================
</pre> QFQ - Bug #14091 (New): inconsistent template path for twighttps://project.math.uzh.ch/issues/140912022-04-19T16:36:32ZNicola Chiapolini
<p>When using <code>10.twig = file:...</code> Twig looks for the template relative to the <site path> (i.e. the webroot)<br />instead of the project path (as given in <code>qfq.project.path.php</code>) where reports are located. <br />Twig prevents loading templates outside the configured pathes, so one can not just use <code>..</code> to get there, if it is outside the webroot.</p>
<p>(In addition, it would be nice, if _script was relative to the project path as well)</p> QFQ - Bug #14077 (New): As _link: Attribute 'class' missing by r:1 and r:3 - but should sethttps://project.math.uzh.ch/issues/140772022-04-15T08:11:37ZCarsten Rosecarsten.rose@math.uzh.ch
<ul>
<li>In #13350 beshreibt Benj das 'class' scheinbar nicht gesetzt wird bei r:1 und r:3.</li>
<li>Frage: in welchem Render Mode sollen Attribute gesetzt werden? <a class="external" href="http://docs.qfq.io/en/master/Report.html#render-mode">http://docs.qfq.io/en/master/Report.html#render-mode</a></li>
<li>Ganz sicher immer wenn 'text' ausgegeben werden soll.</li>
<li>Vorschlag: 1,2,3,4,6</li>
</ul> QFQ - Bug #13706 (New): Wrong CheckType in FieldElement LastStatus of Form Cronhttps://project.math.uzh.ch/issues/137062022-01-21T17:20:57ZNicola Chiapolini
<p>The Check Type of LastStatus is configured as <code>alnumx</code> - but the displayed table column contains sanitized HTML, so lots of <code>&</code>.<br />(Trying to switch the value to fails with a warning "Encode 'specialchar' is not completely compatible with Check Type 'allbut': certain user input will be converted to its HTML representation (e.g. "), which makes use of a non-supported character (&)" which wrong, as according to docs, & is valid for allbut. However this message is missing for alnumx, where it would be correct...</p>
<p>Changing Check Type to <code>all</code> allows me to see the source retrieved by the lastrun.</p> QFQ - Bug #13659 (New): wrong sanitize class applied to R-storehttps://project.math.uzh.ch/issues/136592022-01-14T16:32:23ZNicola Chiapolini
<pre><code class="sql syntaxhl"><span class="mi">11</span><span class="p">.</span><span class="k">sql</span> <span class="o">=</span> <span class="k">SELECT</span> <span class="nv">"hallo"</span> <span class="k">AS</span> <span class="k">type</span>
<span class="mi">11</span><span class="p">.</span><span class="n">content</span> <span class="o">=</span> <span class="n">hide</span>
<span class="mi">20</span><span class="p">.</span><span class="k">sql</span> <span class="o">=</span> <span class="k">SELECT</span> <span class="s1">'{{type:R0}}'</span>
</code></pre>
<p>output:<br /><code>!!digit!!</code></p>
<p>(any other name then <code>type</code> works :-)</p> QFQ - Bug #13460 (New): Doc: Password set/reset ... password should not processed with 'html encode'https://project.math.uzh.ch/issues/134602021-12-02T16:46:33ZCarsten Rosecarsten.rose@math.uzh.ch
<p>Wenn ein neues Passwort gesetzt wird, darf es nicht HTML encoded werden - sonst funktioniert das '&' nicht.</p>
<p>Check ob das Beispiel im Best Practice das beruecksichtigt.</p> QFQ - Bug #13451 (New): Character Counter / Max Character: Problem in Safarihttps://project.math.uzh.ch/issues/134512021-11-30T19:43:10ZCarsten Rosecarsten.rose@math.uzh.ch
<p>Mitunter ist der Character Counter in Textarea Feldern ungenau. Der Fehler scheint bei Safari aufzutreten. In Firefox oder Google Chrome (Linux & Mac) kann der Effekt nicht beobachtet werden.</p>
<p>Werden z.B. bei dem unten genannten Feld 2500 Zeichen (nur Ziffern) aus der Zwischenablage eingefuegt, kann man unter Safari immer noch Zeichen (>100) eingeben.</p>
<pre>
{
"dynamicUpdate": "no",
"enabled": "yes",
"name": "project_description",
"label": "Zusammenfassung<\/div><div class=\"col-md-9\"><small><i>max. 2'500 Zeichen inkl. Leerzeichen<\/i><\/small>",
"mode": "required",
"modeSql": "",
"class": "native",
"type": "text",
"subrecordOption": "",
"encode": "specialchar",
"checkType": "auto",
"checkPattern": "",
"onChange": "",
"ord": 490,
"tabindex": 0,
"size": "62,25",
"maxLength": "2500",
"labelAlign": "default",
"bsLabelColumns": "3",
"bsInputColumns": "9",
"bsNoteColumns": "0",
"rowLabelInputNote": "row,label,\/label,input,\/input,note,\/note,\/row",
"note": "",
"adminNote": "",
"tooltip": "",
"placeholder": "",
"value": "",
"sql1": "",
"parameter": "characterCountWrap = <small><i><span class=”qfq-cc-style”>Zeichen: | <\/span><\/i><\/small>",
"parameterLanguageA": "label = Summary<\/div><div class=\"col-md-9\"><small><i>max. 2'500 characters, including spaces<\/i><\/small>\r\n\r\ncharacterCountWrap = <small><i><span class=”qfq-cc-style”>Count: | <\/span><\/i><\/small>",
"parameterLanguageB": "",
"parameterLanguageC": "",
"parameterLanguageD": "",
"clientJs": "",
"feGroup": "",
"deleted": "no",
"modified": "2019-11-11 23:40:45",
"created": "2018-07-26 09:33:33",
"containerName_ff": "Projektangaben"
},
</pre> QFQ - Bug #13332 (New): Multi Form: Required Felder werden visuell nicht markiert.https://project.math.uzh.ch/issues/133322021-11-07T21:33:33ZCarsten Rosecarsten.rose@math.uzh.ch
<p>In einem Multiform werden die Required Felder nicht markiert.</p>
<p>Weder mit einem Stern, noch beim save wenn ein Feld leer ist und save gedrucket wird.</p>
<p>Das speichern wird korrekt verhindert falls Felder required sind und leer sind.</p> QFQ - Bug #12974 (New): Sanitize Queries in Action-Elementshttps://project.math.uzh.ch/issues/129742021-08-31T18:29:16ZNicola Chiapolini
<p>I just waisted an hour because qfq does not complain at all if the value after <code>sqlXXX = </code> is invalid. This should not happen.</p>
<p>QFQ should never silently ignore bad input unless it has been explicitly told to.</p> QFQ - Bug #12716 (New): template group: Pattern only applied to first instancehttps://project.math.uzh.ch/issues/127162021-06-28T12:13:26ZCarsten Rosecarsten.rose@math.uzh.ch
<p>In #12715 gab es bei der dritten Instanz einer TG den Effekt, das Sanatize 'alnumx' im Browser nur fuer die erste Instanz einer tg abgefragt wird, aber nicht fuer die dritte (vermutlich sind alle betroffen ausser der ersten.</p> QFQ - Bug #12714 (New): Conversion of GIF to PDF broken when GIF contains Alpha.https://project.math.uzh.ch/issues/127142021-06-28T09:23:17ZCarsten Rosecarsten.rose@math.uzh.ch
<pre>
$ img2pdf --pagesize A4 -o 1.pdf 18279.gif
WARNING:root:Image contains transparency which cannot be retained in PDF.
WARNING:root:img2pdf will not perform a lossy operation.
WARNING:root:You can remove the alpha channel using imagemagick:
WARNING:root: $ convert input.png -background white -alpha remove -alpha off output.png
ERROR:root:error: Refusing to work on images with alpha channel
$ convert 18279.gif -background white -alpha remove -alpha off 18279.clean.gif
$ img2pdf --pagesize A4 -o 1.pdf 18279.clean.gif
</pre>
<p>Vorschlag:</p>
<ul>
<li>Check ob img2pdf mit dem Fehler abbricht</li>
<li>Falls ja, convert wie vorgeschlagen.</li>
<li>Damit der Convert nicht bei jedem Download gemacht werden muss: Orginalfile umbenennen und das konvertierte dann unter dem original Namen abspeichen.</li>
</ul> QFQ - Bug #12581 (New): Form.forward=close: Record 'new' in new browser tab > save (& close) >> F...https://project.math.uzh.ch/issues/125812021-05-24T12:02:20ZCarsten Rosecarsten.rose@math.uzh.ch
<p>Das Problem ist aufgefallen beim anlegen von neuen Chiefreviews auf myUZHGrants.</p>
<p>Vermutung:</p>
<ul>
<li>Der Chiefreviewer hat eine Liste von Reviews abzugeben und oeffnet diese mittels 'open in new tab' in mehreren Tabs. </li>
<li>Dabei sind die Reviews im Mode 'new' geoeffnet.</li>
<li>Form.forward = 'Close'</li>
<li>Nach speichern des Reviews geht der Tab nicht zu, da die History leer ist (es gibt keine History auf dem Tab). Auch ein Form.Close funktioniert nicht.</li>
<li>Problem: der Tab ist noch immer im mode 'new'. Ein erneuter Klick auf 'save' wuerde einen weiteren Record anlegen.</li>
</ul>
Loesungsmoeglichkeiten:
<ul>
<li>(schlecht) Fuer 'forward=close' muesste abgefragt ob r=0 (new), falls ja, wird kein 'Close' angeboten und das automatische schliessen bei save wird geaendert auf 'auto'. </li>
<li>(schlecht) Das Form mit dem neu angelegten Record laden (im Prinzip das gleiche wie die erste Variante).</li>
<li>(gut) Per JS den Tab schliessen.</li>
</ul> QFQ - Bug #12546 (Feedback): Branch 'Development' - Unit Tests mit dirty workaround angepassthttps://project.math.uzh.ch/issues/125462021-05-14T06:41:41ZCarsten Rosecarsten.rose@math.uzh.ch
<p>Hallo Marc</p>
<p>Der Develop Branch hat bei mir (webwork16/crose/qfq) diverse Unit Tests mit Fehlern quittiert. Primaer war die URL <a class="external" href="http://xxxxxxxxxxxxxxxxxxxxxxxxxxxx/qfq/">http://xxxxxxxxxxxxxxxxxxxxxxxxxxxx/qfq/</a> das Problem.</p>
<p>Ich habe nicht rausgefunden wie sie im gitlab Runner gesetzt wird. Wenn ich die Unit Tests laufen lass steht bei mir <a class="external" href="http://webwork16.math.uzh.ch/crose/qfq">http://webwork16.math.uzh.ch/crose/qfq</a> oder der relative Pfad. In den Tests ist als expected aber die genannte URL drin.</p>
<p>Muessen wir wirklich eine zweite hart kodierte URL in dem Test haben? Bis anhin hatten wir <a class="external" href="http://www.example.com">www.example.com</a>.</p>
<p>Als Workaround (damit die Tests auf dem gitlab runner und bei mir durchlaufen) gibt es nun eine Konstante BASE_DIR_FAKE die in diversen Tests genutzt wird und teilweise entferne ich zusaetzlich genau die Hostangabe.</p>
<p>Grundsaetzlich sollten wir, wann immer moeglich, keinen Hostnamen angeben.</p>
<p>Vielen Dank</p>
<p>CU<br />Carsten</p> QFQ - Bug #12545 (New): sql.log not created / updatedhttps://project.math.uzh.ch/issues/125452021-05-13T11:58:36ZCarsten Rosecarsten.rose@math.uzh.ch
<ul>
<li>Auf <a class="external" href="https://webwork16.math.uzh.ch/vorkurs/">https://webwork16.math.uzh.ch/vorkurs/</a> gab es kein Verzeichnis `/var/www/html/vorkurs/fileadmin/protected/log`.</li>
<li>Es gab auch keine logfiles sql.log, qfq.log, mail.log</li>
<li>Obwohl die Datei sql.log nicht existiert, sieht man in `Login > Setup > Log` immer eine Zeile (pro Sekunde neu/uberschrieben):<br /><pre>
<p><em>2021.05.13 13:55:04 +0200, Reference: 609d139857048</em></p><p>Error open &#039;fileadmin/protected/log/sql.log&#039;: fopen(fileadmin/protected/log/sql.log): failed to open stream: No such file or directory</p>
</pre></li>
<li>Wird das Verzeichnis angelegt (sollte automatisch passieren) <code>mkdir /var/www/html/vorkurs/fileadmin/protected/log; chown www-data:www-datat /var/www/html/vorkurs/fileadmin/protected/log</code> verschwindet der Fehler, die Datei sql.log ist aber trotzdem nicht da.</li>
<li>Wird eine leere Datei angelgt und ein Formular gespeichert, bleibt die Datei leer.</li>
</ul> QFQ - Bug #12520 (New): Switch FE User: still active even FE User session expiredhttps://project.math.uzh.ch/issues/125202021-05-11T09:41:56ZCarsten Rosecarsten.rose@math.uzh.ch
<ul>
<li>Auf der exam.math.uzh.ch Seite hatte CR sich eingeloggt und ein SwitchUser auf Giulio gemacht.</li>
<li>Einen Tag spaeter war CR nicht mehr eingeloggt, die STORE_USER Session aber scheinbar noch gueltig.</li>
</ul>
<p>Ich bin nicht sicher ob wir das Problem schomal hatten und entschieden haben das es nicht gefixt werden soll.</p>
<p>Meine erste Intention waere, das die QFQ Session abgeraeumt werden sollten wenn keine gueltige FE Session mehr existiert: wie kann man erkennen ob die T# FE Session abgelaufen ist. Was machen wir wenn es keine FE Session gibt (kein FE Login)</p> QFQ - Bug #12512 (New): Some MySQL Installation can't use 'stored procedures'https://project.math.uzh.ch/issues/125122021-05-08T13:29:32ZCarsten Rosecarsten.rose@math.uzh.ch
<p>Die QFQ Hoststar Installation von Karin Niffeler scheint keine Stored Procedures zu unterstuetzen (zumindest sieht man im phpMyAdmin keine Moeglichkeit eine SP anzulegen). Siehe <a class="issue tracker-1 status-6 priority-2 priority-default closed" title="Bug: qfq Form: sendMail (Rejected)" href="https://project.math.uzh.ch/issues/12508">#12508</a> kn5.png, kn6.png, kn7.png.</p>
<p>Es waere gut wenn die QFQ Kernfunktion ohne Stored Procedures funktionieren wuerde.</p>
<p>Check welche anderen Tickets es zu diesem Thema gibt.</p>
<p>Besteht die Moeglichkeit die functions.sql per Setting komplett zu ignorieren?</p>
<p>D.h.:</p>
<ul>
<li>Check wo es zur Zeit ueberall klallt.</li>
<li>Im Standard FormEditor kein <abbr title="">QMORE</abbr> verwenden.</li>
<li>Check ob es moeglich ist QFQ ohne Stored Procedure abzugraden (Bsp: QFQ 19.x > 21.5)</li>
<li>Das Spielen (anlegen) der QFQ Stored Procdures
<ul>
<li>macht Probleme wenn man das File functions.sql in phpMyAdmin ausfuehrt.</li>
<li>die Berechtigungen sind nicht sauber es via phpMyAdmin triggert und dann in QFQ mit den T3 Credentials laufen muss.</li>
</ul></li>
</ul> QFQ - Bug #12395 (Priorize): QFQ Function: Result two times shownhttps://project.math.uzh.ch/issues/123952021-04-16T06:35:55ZCarsten Rosecarsten.rose@math.uzh.ch
<p>Bei QFQ-Function scheint es so zu sein, das das result set zweimal ausgegben wird wird function und sql in einem Level vorkommen:</p>
<pre>
# Individual application
70 {
function = FtgApplicationPdf(apId) => commandPdf
sql = SELECT CONCAT('p:{{pageAlias:T}}&form=ap_ftg_dekanat&r=', ap.id, '|s|b|t:<span class="badge">', ap.id, '</span>') AS _page
# Action
, CONCAT( 'z'
, CONCAT('||p:{{pageAlias:T}}&form=ap_ftg&r=', ap.id, '&formModeGlobal=requiredOff|t:Edit|s|q:Really Edit the Application?')
# , CONCAT('||{{commandPdf:R}}|b:0')
, CONCAT('||p:printview_ftg&type=1&apId=', ap.id, '|s|t:PrintView (debug)', IF({{isDev:R}}, '','|r:5'))
) AS _link
, CONCAT(p.lastName, ', ', p.firstName)
</pre><br /> QFQ - Bug #12327 (New): Copy to clipboard: a) Glyphicon can not be changed, b) Visualisierung & Texthttps://project.math.uzh.ch/issues/123272021-04-07T06:18:33ZCarsten Rosecarsten.rose@math.uzh.ch
<p>a) Scheinbar kann das Glyphicon nicht veraendert werden.</p>
<p>Moeglich sein sollte</p>
<ul>
<li>eines der fixen Icons: N/E/D/...</li>
<li>ein beliebiges via G:gpyphicon-...</li>
</ul>
<p>Der Unittest 'testGlyphiconCopyToClipboard()' testet zur Zeit nur den Standardfall.</p>
<p>b) Visualisierung ziemlich schwach</p>
<ul>
<li>Mitunter ist es wuenschenswert das es eine gut sichtbare Meldung gibt wenn 'copy to clipboard' gedrueckt wird.</li>
<li>Die aktuelle Animation ist leicht zu uebersehen.</li>
<li>Der Text sollte einen Default haben der angepasst werden kann.</li>
<li>Die jetzige Animation ist fuer kleine Aktionen gut, aber nicht fuer wichtige Aktionen.</li>
<li>Man koennte den Typ der Visiualisierung einstellbar machen entweder via I) Systemweit/Form/FormElement oder II) via Parameter bei der Definition.</li>
</ul>
<p><img src="https://project.math.uzh.ch/attachments/download/9512/clipboard-202403161035-agnef.png" alt="" /></p> QFQ - Bug #10508 (New): Multi Form broken on Multi DB Instancehttps://project.math.uzh.ch/issues/105082020-05-07T18:38:54ZCarsten Rosecarsten.rose@math.uzh.ch
<p>Aufgefallen auf der RemoteExam Seite</p> QFQ - Bug #9534 (New): FE.type=upload: 'Unknown Mode: ID"https://project.math.uzh.ch/issues/95342019-11-08T15:41:41ZCarsten Rosecarsten.rose@math.uzh.ch
<ul>
<li>Haengt evtl. mit <a class="issue tracker-1 status-5 priority-4 priority-high2 closed" title="Bug: FE.type=upload: '{{fileDestination}}' saved (Closed)" href="https://project.math.uzh.ch/issues/9532">#9532</a> zusammen.</li>
</ul>
<p>1. User oeffnet neuen Record, das Form hat ein Upload Element, laesst das Upload Element aber leer.' und speichert. Es wird '{{fileDestination}}' (Bug) gespeichert. Das Form wird geschlossen.<br />2. User oeffnet den Record mit dem gleichen Form. <br />3) User klickt auf 'clear upload' (fake Filename '{{fileDestination}}')<br />4) User klickt auf 'Save' - es erscheint die Fehlermeldung 'Unknown Mode: ID"</p> QFQ - Bug #9347 (New): FE.type=upload with dynamic show/hidden: required not detectedhttps://project.math.uzh.ch/issues/93472019-10-11T12:50:57ZCarsten Rosecarsten.rose@math.uzh.ch
<p>Bei Stefan gibt es ein Form das dynamisch ein/ausgeblendet wird.</p>
<p>Wenn es eingeblendet ist, soll es required sein.</p>
<p>Browser: Bei Save moniert der Browser nicht das das Feld leer ist.<br />Server: Bei Save moniert der Server nicht das das Feld leer ist.</p> QFQ - Bug #9173 (New): Stale Record Lock: Firefox https://project.math.uzh.ch/issues/91732019-09-18T21:42:34ZCarsten Rosecarsten.rose@math.uzh.ch
<p>a) Wird mit FF ein Candoc Antrag auf forkred18.math.uzh.ch/forkred wie folgt bearbeitet:</p>
<p>open, modify, save, close, open, modify, close: question 'save?' no > open</p>
<p>dann ist der Record anschliessend gesperrt.</p>
<p>Das Verhalten tritt nicht auf mit Opera. <br />Reproduzierbar mit FF unter Linux und MacOS X.</p>
<p>b) Es kann sein das der Effekt mit einem kleinen Form nicht auftritt.</p> QFQ - Bug #9121 (New): sip links have r and __dbIndexData sethttps://project.math.uzh.ch/issues/91212019-09-13T13:52:57ZNicola Chiapolini
<p>If a link is using SIP, the <code>r=0</code> and <code>__dbIndexData=1</code> are defined even if not specified.</p>
<p>Possible Problems:</p>
<ul>
<li>lazy coders like me do not change the lookup-order, so the r from SIP might hide r from the expected stores (especially when using r inside reused content elements).</li>
<li>if no data is passed on, removing the sip rendering is ok, but one needs to remember to add it back if one adds data later (I use sip for all links)</li>
</ul> QFQ - Bug #6116 (Priorize): value of checkbox not saved https://project.math.uzh.ch/issues/61162018-05-29T09:43:08ZNicola Chiapolini
<p>In one of our forms, we have the following checkbox:<br /><pre><code class="sql syntaxhl"><span class="k">INSERT</span> <span class="k">INTO</span> <span class="nv">`FormElement`</span> <span class="p">(</span><span class="nv">`id`</span><span class="p">,</span> <span class="nv">`formId`</span><span class="p">,</span> <span class="nv">`feIdContainer`</span><span class="p">,</span> <span class="nv">`dynamicUpdate`</span><span class="p">,</span> <span class="nv">`enabled`</span><span class="p">,</span> <span class="nv">`name`</span><span class="p">,</span> <span class="nv">`label`</span><span class="p">,</span> <span class="nv">`mode`</span><span class="p">,</span> <span class="nv">`modeSql`</span><span class="p">,</span> <span class="nv">`class`</span><span class="p">,</span> <span class="nv">`type`</span><span class="p">,</span> <span class="nv">`subrecordOption`</span><span class="p">,</span> <span class="nv">`encode`</span><span class="p">,</span> <span class="nv">`checkType`</span><span class="p">,</span> <span class="nv">`checkPattern`</span><span class="p">,</span> <span class="nv">`onChange`</span><span class="p">,</span> <span class="nv">`ord`</span><span class="p">,</span> <span class="nv">`tabindex`</span><span class="p">,</span> <span class="nv">`size`</span><span class="p">,</span> <span class="nv">`maxLength`</span><span class="p">,</span> <span class="nv">`bsLabelColumns`</span><span class="p">,</span> <span class="nv">`bsInputColumns`</span><span class="p">,</span> <span class="nv">`bsNoteColumns`</span><span class="p">,</span> <span class="nv">`rowLabelInputNote`</span><span class="p">,</span> <span class="nv">`note`</span><span class="p">,</span> <span class="nv">`adminNote`</span><span class="p">,</span> <span class="nv">`tooltip`</span><span class="p">,</span> <span class="nv">`placeholder`</span><span class="p">,</span> <span class="nv">`value`</span><span class="p">,</span> <span class="nv">`sql1`</span><span class="p">,</span> <span class="nv">`parameter`</span><span class="p">,</span> <span class="nv">`parameterLanguageA`</span><span class="p">,</span> <span class="nv">`parameterLanguageB`</span><span class="p">,</span> <span class="nv">`parameterLanguageC`</span><span class="p">,</span> <span class="nv">`parameterLanguageD`</span><span class="p">,</span> <span class="nv">`clientJs`</span><span class="p">,</span> <span class="nv">`feGroup`</span><span class="p">,</span> <span class="nv">`deleted`</span><span class="p">,</span> <span class="nv">`modified`</span><span class="p">,</span> <span class="nv">`created`</span><span class="p">)</span> <span class="k">VALUES</span>
<span class="p">(</span><span class="mi">164</span><span class="p">,</span> <span class="mi">1000</span><span class="p">,</span> <span class="mi">380</span><span class="p">,</span> <span class="s1">'no'</span><span class="p">,</span> <span class="s1">'yes'</span><span class="p">,</span> <span class="s1">'reg_done'</span><span class="p">,</span> <span class="s1">'Final'</span><span class="p">,</span> <span class="s1">'hidden'</span><span class="p">,</span> <span class="s1">'{{SELECT IF( title_hash != </span><span class="se">\'\'</span><span class="s1"> AND (SELECT SUM(head) FROM `phd_committee_members` WHERE phd_student=(SELECT id FROM phd_graduation WHERE shortname=</span><span class="se">\'</span><span class="s1">{{shortname}}</span><span class="se">\'</span><span class="s1"> )) = 1,</span><span class="se">\'</span><span class="s1">show</span><span class="se">\'</span><span class="s1">, </span><span class="se">\'</span><span class="s1">hidden</span><span class="se">\'</span><span class="s1">) FROM phd_graduation WHERE shortname=</span><span class="se">\'</span><span class="s1">{{shortname}}</span><span class="se">\'</span><span class="s1"> }}'</span><span class="p">,</span> <span class="s1">'native'</span><span class="p">,</span> <span class="s1">'checkbox'</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="s1">'specialchar'</span><span class="p">,</span> <span class="s1">'alnumx'</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="mi">200</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="s1">'row,label,/label,input,/input,note,/note,/row'</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="s1">'{{!SELECT IF(reg_done, reg_done, NOW()) FROM phd_graduation WHERE id=</span><span class="se">\'</span><span class="s1">{{id:RE}}</span><span class="se">\'</span><span class="s1"> }}'</span><span class="p">,</span> <span class="s1">'checkBoxMode = single</span><span class="se">\r\n</span><span class="s1">label2 = Submit this form and start the process.'</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="s1">'no'</span><span class="p">,</span> <span class="s1">'2018-05-29 09:34:25'</span><span class="p">,</span> <span class="s1">'2018-03-09 10:06:26'</span><span class="p">);</span>
</code></pre></p>
<p>This checkbox gets correctly displayed with all the values of <code>mode sql</code> below, but only saved to the DB for some of them:</p>
<p><strong>good</strong><br /><pre><code>
{{SELECT IF( title_hash != '' ,'show', 'hidden') FROM phd_graduation WHERE shortname='{{shortname}}' }}
{{SELECT IF( title_hash != '' AND (SELECT SUM(head) FROM `phd_committee_members` WHERE phd_student=(SELECT id FROM phd_graduation WHERE shortname='{{shortname}}' )) = 1,'show', 'hidden') FROM phd_graduation WHERE shortname='{{shortname}}' }}
</code></pre></p>
<p><strong>bad</strong><br /><pre><code>
{{SELECT IF( title_hash != '' ,'show', 'hidden') FROM phd_graduation WHERE id='{{id}}' }}
{{SELECT IF( title_hash != '' ,'show', 'hidden') FROM phd_graduation WHERE shortname='{{shortname:R0}}' }}
{{SELECT IF( title_hash != '' ,'show', 'hidden') FROM phd_graduation WHERE shortname='{{shortname:FR0}}' }}
{{SELECT IF( title_hash != '' AND (SELECT SUM(head) FROM `phd_committee_members` WHERE phd_student='{{id:R0}}') = 1,'show', 'hidden') FROM phd_graduation WHERE id='{{id:R0}}' }}
</code></pre></p>
<p><code>shortname</code> is a nativ / extra field in the form, <code>id</code> is not part of the form.</p>
<p>In any case, a displayed field should also be saved ;-)</p>