Skip to content

Commit

Permalink
Merge pull request #212 from ankush-maherwal/release-1.4.4
Browse files Browse the repository at this point in the history
Bug #242 fix: If any field in subform contain special character in it…
  • Loading branch information
ankush-maherwal authored Nov 20, 2019
2 parents 0854c9d + 3fb2fe0 commit 4980a5f
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 4980a5f

Please sign in to comment.