Version 4.3.6
This commit is contained in:
1 parent
fe1acf984a
commit
1a0c7fd3c2
609 files changed
+14707
-5726
No files matched your search
@@ -248,7 +248,14 @@ class _Matrix extends \IPS\Helpers\Form
|
||||
{
|
||||
if( is_array( $inputValue ) AND isset( $inputValue[ $newId ] ) )
|
||||
{
|
||||
$data = array_merge( $data, $inputValue[ $newId ] );
|
||||
/* @note This previously used an array_merge() however this was causing elements to be overwritten with a blank value in some cases */
|
||||
foreach( $inputValue[ $newId ] AS $key => $value )
|
||||
{
|
||||
if ( $value )
|
||||
{
|
||||
$data[ $key ] = $value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user