// Fix null values ...

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11726 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2011-12-22 23:20:30 +00:00
parent eee9c0dbf0
commit a337f004c1
41 changed files with 178 additions and 161 deletions
+4
View File
@@ -54,6 +54,7 @@ class SynchronizeController extends InstallControllerHttp
$sqls = isset($_POST['sql']) ? (array)$_POST['sql'] : array();
$orders = isset($_POST['order']) ? (array)$_POST['order'] : array();
$images = isset($_POST['image']) ? (array)$_POST['image'] : array();
$nulls = isset($_POST['null']) ? (array)$_POST['null'] : array();
$entities = array();
foreach ($tables as $table)
@@ -77,6 +78,9 @@ class SynchronizeController extends InstallControllerHttp
if (isset($images[$table]) && $images[$table])
$config['image'] = $images[$table];
if (isset($nulls[$table]) && $nulls[$table])
$config['null'] = $nulls[$table];
$fields = array();
if (isset($columns[$table]))
{
+3
View File
@@ -202,6 +202,9 @@
Ordre SQL
<input type="text" name="order[<?php echo $entity ?>]" value="<?php echo (isset($entity_info['config']['ordersql'])) ? $entity_info['config']['ordersql'] : '' ?>" />
</label>
<label>
Valeurs NULL <input type="checkbox" name="null[<?php echo $entity ?>]" value="1" <?php if (isset($entity_info['config']['null']) && $entity_info['config']['null']): ?>checked="checked"<?php endif; ?> />
</label>
</div>
</li>
<?php foreach ($this->loader->getColumns($entity) as $column => $is_text): ?>