Skip to content
Browse files

[-] MO : Fix bug #PSCFV-7800, lang fields definition in Retrocompatib…

…ility definition, thankx to Olea
  • Loading branch information...
1 parent b63e5c2 commit 53b0e112922e20991933abe0caac143f413a7bba @gRoussac gRoussac committed Mar 26, 2013
Showing with 13 additions and 4 deletions.
  1. +13 −4 classes/ObjectModel.php
View
17 classes/ObjectModel.php
@@ -1534,14 +1534,23 @@ protected function setDefinitionRetrocompatibility()
foreach($suffixs as $suffix)
{
foreach ($this->{'fieldsValidate'.$suffix} as $field => $validate)
+ {
$this->def['fields'][$field]['validate'] = $validate;
-
+ if ($suffix == 'Lang')
+ $this->def['fields'][$field]['lang'] = true;
+ }
foreach ($this->{'fieldsRequired'.$suffix} as $field)
+ {
$this->def['fields'][$field]['required'] = true;
-
- foreach ($this->{'fieldsSize'.$suffix} as $field => $size)
+ if ($suffix == 'Lang')
+ $this->def['fields'][$field]['lang'] = true;
+ }
+ foreach ($this->{'fieldsSize'.$suffix} as $field => $size}
+ {
$this->def['fields'][$field]['size'] = $size;
-
+ if ($suffix == 'Lang')
+ $this->def['fields'][$field]['lang'] = true;
+ }
}
}
}

0 comments on commit 53b0e11

Please sign in to comment.
Something went wrong with that request. Please try again.