Changeset:
d4367ca04907
https://sourceforge.net/p/mrbs/hg-code/ci/d4367ca04907d64238577f16bb747f6fffc311ed
Author:
Campbell Morrison <[email protected]>
Date:
Thu Jan 28 20:29:19 2016 +0000
Log message:
Simplified code
diffstat:
web/edit_entry.php | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r c6135653693f -r d4367ca04907 web/edit_entry.php
--- a/web/edit_entry.php Thu Jan 28 20:19:10 2016 +0000
+++ b/web/edit_entry.php Thu Jan 28 20:29:19 2016 +0000
@@ -267,7 +267,7 @@
'value' => $description,
'disabled' => $disabled,
'maxlength' => isset($maxlength['entry.description']) ?
$maxlength['entry.description'] : NULL,
- 'mandatory' =>
isset($is_mandatory_field['entry.description']) &&
$is_mandatory_field['entry.description']);
+ 'mandatory' =>
!empty($is_mandatory_field['entry.description']));
if (isset($select_options['entry.description']) ||
isset($datalist_options['entry.description']) )
@@ -557,7 +557,7 @@
'disabled' => $disabled,
'attributes' => array(),
'maxlength' => isset($maxlength["entry.$key"]) ?
$maxlength["entry.$key"] : NULL,
- 'mandatory' => isset($is_mandatory_field["entry.$key"]) &&
$is_mandatory_field["entry.$key"]);
+ 'mandatory' => !empty($is_mandatory_field["entry.$key"]));
// Output a checkbox if it's a boolean or integer <= 2 bytes (which we will
// assume are intended to be booleans)
if (($field['nature'] == 'boolean') ||
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits