From 95bc40d0df2860fe9b69ff5aadd0eef1dc2c9a5b Mon Sep 17 00:00:00 2001 From: jfefe Date: Fri, 26 Jul 2013 08:51:22 +0200 Subject: [PATCH] Missing attribute to indicate required fields --- htdocs/core/class/commonobject.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index d8b3e923781..25248dd21a4 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -2242,6 +2242,10 @@ abstract class CommonObject { $value = isset($_POST["options_".$key])?dol_mktime($_POST["options_".$key."hour"], $_POST["options_".$key."min"], 0, $_POST["options_".$key."month"], $_POST["options_".$key."day"], $_POST["options_".$key."year"]):$this->db->jdate($this->array_options['options_'.$key]); } + + if($extrafields->attribute_required[$key]) + $label = ''.$label.''; + $out .= ''.$label.''; $out .='';