Version 4.7.6
This commit is contained in:
1 parent
8ba7d43898
commit
7b7404e741
1085 files changed
+30590
-7837
No files matched your search
@@ -588,7 +588,7 @@ abstract class _CustomField extends \IPS\Node\Model
|
||||
$oldId = $this->id;
|
||||
$oldColumn = isset( $this->column ) ? $this->column : "field_{$oldId}";
|
||||
parent::__clone();
|
||||
$column = isset( $this->column ) ? $this->column : "field_{$this->id}";
|
||||
$column = "field_{$this->id}";
|
||||
|
||||
if ( isset( static::$contentDatabaseTable ) )
|
||||
{
|
||||
@@ -899,7 +899,7 @@ abstract class _CustomField extends \IPS\Node\Model
|
||||
if( $this->type == 'Select' )
|
||||
{
|
||||
$requiredColumn = ( isset( $this::$databaseColumnMap['not_null'] ) and $this::$databaseColumnMap['not_null'] ) ? $this::$databaseColumnMap['not_null'] : NULL;
|
||||
if ( !$this->$requiredColumn AND !$this->multiple )
|
||||
if ( !$this->$requiredColumn AND !$this->multiple AND \is_array( $options ) )
|
||||
{
|
||||
array_unshift( $options, '' );
|
||||
}
|
||||
@@ -1016,7 +1016,7 @@ abstract class _CustomField extends \IPS\Node\Model
|
||||
if( $this->type == 'Select' )
|
||||
{
|
||||
$requiredColumn = ( isset( $this::$databaseColumnMap['not_null'] ) and $this::$databaseColumnMap['not_null'] ) ? $this::$databaseColumnMap['not_null'] : NULL;
|
||||
if ( !$this->$requiredColumn AND !$this->multiple )
|
||||
if ( !$this->$requiredColumn AND !$this->multiple AND \is_array( $options ) )
|
||||
{
|
||||
array_unshift( $options, '' );
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user