Skip to content

Commit

Permalink
Bug #242 fix: If any field in subform contain special character in it…
Browse files Browse the repository at this point in the history
…s name then the data for that field is not saved in DB
  • Loading branch information
ankush-maherwal committed Nov 20, 2019
1 parent be57ef6 commit 3fb2fe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion administrator/models/field.php
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ public function save($data)
if ($data['id'] == 0)
{
// Escape apostraphe
$data_name = trim(preg_replace('/[^A-Za-z0-9\-\']/', '', $data['name']));
$data_name = trim(preg_replace('/[^a-zA-Z0-9]/', '', $data['name']));
$client = explode('.', $data['client']);
$client = $client[0];
$data_unique_name = $client . '_' . $data['client_type'] . '_' . $data_name;
Expand Down

0 comments on commit 3fb2fe0

Please sign in to comment.