DirectorObjectForm: say "inherited from ..."
This commit is contained in:
parent
213df7e34b
commit
1e5deb2441
|
@ -291,16 +291,17 @@ abstract class DirectorObjectForm extends QuickForm
|
|||
return;
|
||||
}
|
||||
|
||||
$txtInherited = $this->translate(' (inherited from "%s")');
|
||||
if ($el instanceof Zf_Select) {
|
||||
$multi = $el->getMultiOptions();
|
||||
if (array_key_exists($inherited, $multi)) {
|
||||
$multi[null] = $multi[$inherited] . sprintf(' (%s)', $inheritedFrom);
|
||||
$multi[null] = $multi[$inherited] . sprintf($txtInherited, $inheritedFrom);
|
||||
} else {
|
||||
$multi[null] = $this->translate('- inherited -');
|
||||
$multi[null] = $this->translate($this->translate('- inherited -'));
|
||||
}
|
||||
$el->setMultiOptions($multi);
|
||||
} else {
|
||||
$el->setAttrib('placeholder', $inherited . sprintf(' (%s)', $inheritedFrom));
|
||||
$el->setAttrib('placeholder', $inherited . sprintf($txtInherited, $inheritedFrom));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue