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

Prochaines sessions de formation

Les prochaines formations et démonstrations sont ouvertes, inscrivez-vous rapidement !

 

Démonstration de ProjeQtOr

(gratuit, sur inscription)

Mardi 23 avril (10h30-12h)

Jeudi 16 mai (16h-17h30)

Jeudi 13 juin (10h30-12h)

 
 

Planifiez avec ProjeQtOr

3 et 4 avril (9h - 12h30)

 
 

Administrez avec ProjeQtOr

10 et 11 avril (9h - 12h30)

 

 

 
 

Add field mandatory on class Action

More
10 Déc 2012 13:25 - 11 Déc 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 Déc 2012 12:00 by a.mikael.

Please Connexion or Create an account to join the conversation.

More
10 Déc 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 Connexion or Create an account to join the conversation.

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

It works !

Please Connexion or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.047 seconds

Paramétrages de cookies

×

Cookies fonctionnels

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

Veuillez vous connecter pour voir vos activités!

Autres cookies

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