View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - Add field mandatory on class Action - ProjeQtOr
 
 

Add field mandatory on class Action

More
10 Dec 2012 13:25 - 11 Dec 2012 12:00 #1 by a.mikael
hi,

I need to add a mandatory on my field idResultsType in class Action since description or result :

1) I have add mandatoryEfficiencyOnDone in table Type

2) I have add that in class Type :
public $mandatoryEfficiencyOnDone;
  public $_lib_mandatoryEfficiencyOnDoneStatus;
"mandatoryEfficiencyOnDone"=>"nobr",

So i see in ActionType my new field mandatory :



But now, my checkbox efficiency has no effect in my field idResultsType in Action

After, i have add that in SqlElement.php but it changes nothing :
if (property_exists($objType, 'mandatoryEfficiencyOnDone') and $objType->mandatoryEfficiencyOnDone 
      and property_exists($this, 'idResultsType')
      and property_exists($this, 'done')) {
        if ($this->done and ! $this->idResultsType) {
          $result.='<br/>' . i18n('messageMandatory',array($this->getColCaption('idResultsType')));
        }
      }

Thx
Attachments:
Last edit: 11 Dec 2012 12:00 by a.mikael.

Please Log in or Create an account to join the conversation.

More
10 Dec 2012 13:36 #2 by a.mikael
The problem is in this condition :
if ($this->done and ! $this->idResultsType)

Because i think i copy that :
if ($this->done and ! $this->result)

And i have just change $this->result

Please Log in or Create an account to join the conversation.

More
10 Dec 2012 13:41 #3 by a.mikael
Okay i found, should be added 'trim()':
if ($this->done and ! trim($this->idResultsType))

It works !

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.045 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.