Version 4.1.2
This commit is contained in:
1 parent
3ba79295ee
commit
28bd025b35
1131 files changed
+63658
-20579
No files matched your search
@@ -274,11 +274,19 @@ abstract class _FormAbstract
|
||||
/* Some form helpers might want to allow nested and outer suffixes */
|
||||
$html = $this->html();
|
||||
|
||||
if( array_key_exists( 'endSuffix', $this->options ) )
|
||||
if( array_key_exists( 'endSuffix', $this->options ) and ! empty( $this->options['endSuffix'] ) )
|
||||
{
|
||||
$this->suffix = $this->options['endSuffix'];
|
||||
}
|
||||
|
||||
/* Some elements support an array for suffix, such as Number which supports preUnlimited and postUnlimited. We need to wipe out
|
||||
the suffix here before calling the row() template, however, which only supports a string and throws an Array to string conversion error.
|
||||
By this point, the element template has already ran and used the suffix if designed to */
|
||||
if( is_array( $this->suffix ) )
|
||||
{
|
||||
$this->suffix = '';
|
||||
}
|
||||
|
||||
return \IPS\Theme::i()->getTemplate( 'forms', 'core' )->row( $label, $html, $desc, $warning, $this->appearRequired, $this->error, $this->prefix, $this->suffix, $this->htmlId ?: ( $form ? "{$form->id}_{$this->name}" : NULL ), $this, $form );
|
||||
}
|
||||
catch ( \Exception $e )
|
||||
|
||||
Reference in new issue
Block a user