Advertisement
DidouS

MB Views problem when escaping quote

Mar 15th, 2020
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.12 KB | None | 0 0
  1. /**
  2.  *
  3.  * Notice the \' in the desc key => value pair. It works in code, but triggers an error in the
  4.  * JSON data that is added to the DOM attributes
  5.  *
  6.  */
  7.  
  8.                             array(
  9.                                 'name'     => 'Value Type',
  10.                                 'id'       => 'value_type',
  11.                                 'type'     => 'button_group',
  12.                                 'desc' => 'NOTE: The type\' DATE works with the \'compare\' value BETWEEN only if the date is stored at the format YYYYMMDD and tested with this format.',
  13.                                 'options'  => array(
  14.                                     'CHAR'      => 'Char',
  15.                                     'NUMERIC'    => 'Numeric',
  16.                                     'BINARY' => 'Binary',
  17.                                     'DATE'  => 'Date',
  18.                                     'TIME' => 'Time',
  19.                                     'DATETIME' => 'Datetime',
  20.                                     'DECIMAL' => 'Decimal',
  21.                                     'SIGNED' => 'Signed',
  22.                                     'UNSIGNED' => 'Unsigned',
  23.                                 ),
  24.                                 'std' => 'CHAR',
  25.                                 'inline'   => true, // true (horizontal) / false (vertical)
  26.                                 'multiple' => false, // multiple choice
  27.                             ),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement