Browse Source

fleat: update mytage save

igb 2 weeks ago
parent
commit
6d609e5c3d
1 changed files with 4 additions and 1 deletions
  1. 4 1
      customerSave.php

+ 4 - 1
customerSave.php

@@ -49,8 +49,11 @@ $cs_deal = (is_numeric($cs_deal) && $cs_deal !== '') ? $cs_deal : 1;
 $cs_belongClient = (is_numeric($cs_belongclient) && $cs_belongclient !== '') ? $cs_belongclient : 0;
 
 $cs_note = htmlEncode($_POST['cs_note'] ?? '');
-$mytag = textEncode($_POST['mytag'] ?? '');
+$_POST['mytag']=str_replace(" ", "", $_POST['mytag']);
+$mytag = trim(textEncode($_POST['mytag'] ?? ''));
 $mytag = str_replace(['</span><span>', '</span>', '<span>'], [',', '', ''], $mytag);
+
+
 $mytag = explode(',', $mytag);