Skip to content

Commit

Permalink
Fix @pull/804
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienheraud committed Aug 26, 2024
1 parent adcbdd5 commit 4b70405
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion administrator/components/com_cck/models/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,13 @@ public function postStore( $pk )
if ( isset( $raw_data['ffp'] ) ) {
$data['ffp'] = $raw_data['ffp'];
}

if ( !isset( $data['ff'] ) ) {
$data['ff'] = array();
}
if ( !isset( $data['ffp'] ) ) {
$data['ffp'] = array();
}

$this->storeMore( $pk, $data['client'], $data['ff'], $data['ffp'] );

if ( isset( $data['cck_type'] ) && $data['cck_type'] != '' ) {
Expand Down Expand Up @@ -249,6 +255,7 @@ protected function storeMore( $searchId, $client, $fields, $params )
$method = 'gm_getConstruction_Values_Search';

JCckDatabase::execute( 'DELETE FROM #__cck_core_'.$table.' WHERE searchid = '.(int)$searchId . ' AND client = "'.$client.'"' );

if ( count( $fields ) ) {
$assigned = '';
$ordering = 1;
Expand Down

0 comments on commit 4b70405

Please sign in to comment.