From 7895409a2db9e9def86211a23af3b41a15c59d35 Mon Sep 17 00:00:00 2001 From: "Phyks (Lucas Verney)" Date: Tue, 2 Aug 2016 18:52:28 +0200 Subject: [PATCH] Fix issue #1356 Invalid URL type for input fields for paths Some input fields were wrongly assigned a "url" type and browsers were enforcing a valid URL to be put in these fields. Set them back to text. Closes #1356. --- modules/catalog/dropbox/dropbox.catalog.php | 2 +- modules/catalog/local/local.catalog.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/catalog/dropbox/dropbox.catalog.php b/modules/catalog/dropbox/dropbox.catalog.php index 58fb6952..0c16f968 100644 --- a/modules/catalog/dropbox/dropbox.catalog.php +++ b/modules/catalog/dropbox/dropbox.catalog.php @@ -113,7 +113,7 @@ class Catalog_dropbox extends Catalog { $fields['apikey'] = array('description' => T_('API Key'), 'type'=>'text'); $fields['secret'] = array('description' => T_('Secret'), 'type'=>'password'); - $fields['path'] = array('description' => T_('Path'), 'type'=>'url', 'value' => '/'); + $fields['path'] = array('description' => T_('Path'), 'type'=>'text', 'value' => '/'); $fields['getchunk'] = array('description' => T_('Get chunked files on analyze'), 'type'=>'checkbox', 'value' => true); return $fields; diff --git a/modules/catalog/local/local.catalog.php b/modules/catalog/local/local.catalog.php index a28035a7..e6ce9c80 100644 --- a/modules/catalog/local/local.catalog.php +++ b/modules/catalog/local/local.catalog.php @@ -101,7 +101,7 @@ class Catalog_local extends Catalog public function catalog_fields() { - $fields['path'] = array('description' => T_('Path'),'type'=>'url'); + $fields['path'] = array('description' => T_('Path'),'type'=>'text'); return $fields; }