Fix PHP warning in preg_replace

Escape backslash

Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
This commit is contained in:
Maurício Meneghini Fauth 2017-10-07 21:55:56 -03:00
parent 582b1484ac
commit 3eabc98b59

View File

@ -6,7 +6,7 @@
{% trans 'Column:' %}
<select name="columnIndex">
{% for i in 0..column_names|length - 1 %}
{% set type = preg_replace('@\(.*@s', '', column_types[i]) %}
{% set type = preg_replace('@\\(.*@s', '', column_types[i]) %}
{% if sql_types.getTypeClass(type) == 'CHAR' %}
{% set column = column_names[i] %}
<option value="{{ i }}">