Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…ility definition, thankx to Olea
  • Loading branch information...
commit 53b0e112922e20991933abe0caac143f413a7bba 1 parent b63e5c2
Gregory Roussac gRoussac authored

Showing 1 changed file with 13 additions and 4 deletions. Show diff stats Hide diff stats

  1. +13 4 classes/ObjectModel.php
17 classes/ObjectModel.php
@@ -1534,14 +1534,23 @@ protected function setDefinitionRetrocompatibility()
1534 1534 foreach($suffixs as $suffix)
1535 1535 {
1536 1536 foreach ($this->{'fieldsValidate'.$suffix} as $field => $validate)
  1537 + {
1537 1538 $this->def['fields'][$field]['validate'] = $validate;
1538   -
  1539 + if ($suffix == 'Lang')
  1540 + $this->def['fields'][$field]['lang'] = true;
  1541 + }
1539 1542 foreach ($this->{'fieldsRequired'.$suffix} as $field)
  1543 + {
1540 1544 $this->def['fields'][$field]['required'] = true;
1541   -
1542   - foreach ($this->{'fieldsSize'.$suffix} as $field => $size)
  1545 + if ($suffix == 'Lang')
  1546 + $this->def['fields'][$field]['lang'] = true;
  1547 + }
  1548 + foreach ($this->{'fieldsSize'.$suffix} as $field => $size}
  1549 + {
1543 1550 $this->def['fields'][$field]['size'] = $size;
1544   -
  1551 + if ($suffix == 'Lang')
  1552 + $this->def['fields'][$field]['lang'] = true;
  1553 + }
1545 1554 }
1546 1555 }
1547 1556 }

0 comments on commit 53b0e11

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