Infolog: Fix config validation about missing options, make cancel button not validate

This commit is contained in:
nathan 2022-11-04 13:26:16 -06:00
parent 37c0091e3d
commit 67e1323583
2 changed files with 10 additions and 8 deletions

View File

@ -2479,17 +2479,19 @@ class infolog_ui
public function admin($content = array()) public function admin($content = array())
{ {
$fields = array( $fields = array(
'info_cat' => 'Category', 'info_status' => 'Status',
'info_from' => 'Contact', 'info_cat' => 'Category',
'info_subject' => 'Subject', 'info_from' => 'Contact',
'info_des' => 'Description', 'info_subject' => 'Subject',
'link_to' => 'Links', 'info_des' => 'Description',
'info_priority' => 'Priority', 'link_to' => 'Links',
'info_location' => 'Location', 'info_priority' => 'Priority',
'info_location' => 'Location',
'info_planned_time' => 'Planned time', 'info_planned_time' => 'Planned time',
'info_used_time' => 'Used time', 'info_used_time' => 'Used time',
); );
$excludefields = array( $excludefields = array(
'info_id' => 'ID',
'info_cat' => 'Category', 'info_cat' => 'Category',
'info_from' => 'Contact', 'info_from' => 'Contact',
'info_subject' => 'Subject', 'info_subject' => 'Subject',

View File

@ -117,7 +117,7 @@
<hbox class="dialogFooterToolbar"> <hbox class="dialogFooterToolbar">
<button statustext="Save the changes made" label="Save" id="save"/> <button statustext="Save the changes made" label="Save" id="save"/>
<button statustext="apply the changes" label="Apply" id="apply"/> <button statustext="apply the changes" label="Apply" id="apply"/>
<button statustext="Exit without saving" label="Cancel" id="cancel"/> <button statustext="Exit without saving" label="Cancel" id="cancel" noValidation="true"/>
</hbox> </hbox>
</vbox> </vbox>
<styles>select { <styles>select {