Version 4.3.0
This commit is contained in:
1 parent
96997ddd8e
commit
fe1acf984a
1349 files changed
+116159
-67711
No files matched your search
@@ -240,7 +240,19 @@ class _Matrix extends \IPS\Helpers\Form
|
||||
}
|
||||
|
||||
if ( $added )
|
||||
{
|
||||
{
|
||||
/* Select lists can have user-supplied input, so look for that too */
|
||||
foreach( \IPS\Request::i() as $inputKey => $inputValue )
|
||||
{
|
||||
if( $pos = mb_strpos( $inputKey, '_new_' ) AND $inputKey !== '_new_' )
|
||||
{
|
||||
if( is_array( $inputValue ) AND isset( $inputValue[ $newId ] ) )
|
||||
{
|
||||
$data = array_merge( $data, $inputValue[ $newId ] );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$this->elements["_new_[{$i}]"] = $this->buildRow( "_new_[{$i}]", $data );
|
||||
$this->addedRows[] = "_new_[{$i}]";
|
||||
$i++;
|
||||
@@ -314,7 +326,6 @@ class _Matrix extends \IPS\Helpers\Form
|
||||
$name = "{$this->id}_submitted";
|
||||
if( $force or ( isset( \IPS\Request::i()->$name ) and \IPS\Request::i()->csrfKey === \IPS\Session::i()->csrfKey ) )
|
||||
{
|
||||
|
||||
// Do we need to unsquash any values?
|
||||
// Squashed values are json_encoded by javascript to prevent us exceeding max_post_vars
|
||||
$squashedField = $this->id . '_squashed';
|
||||
|
||||
Reference in new issue
Block a user