Closed (fixed)
Project:
Patterns
Version:
7.x-1.0-rc1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
30 Oct 2012 at 12:15 UTC
Updated:
14 Nov 2012 at 11:47 UTC
Jump to comment: Most recent file
The URI field it is checked in the hook_validate_form, but it does not appear as mandatory in the form itself. See screenshot below:

The field could be marked as required in the form: function patterns_import_url() (includes/forms/import.inc l.224):
$form['pattern_uri'] = array(
'#type' => 'textfield',
'#title' => t('Specify an URI'),
'#description' => t('Import a pattern from a remote URL. Imported patterns are not executed until you run them manually.'),
'#size' => 48,
'#required' => TRUE,
);
I will create a branch of the code at github, take a look at it and provide a patch with the solution to be committed to drupal.org if everything is ok.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | issue-1826922.patch | 854 bytes | drozas |
| import-uri-mandatory.png | 145.95 KB | drozas |
Comments
Comment #1
drozasComment #2
drozasHi all,
Please find attached the patch solving the problem. I will also merge and push the changes at git@github.com:QScience/Patterns.git
Regards,
David
Comment #3
drozasI'll mark this as fixed, the patch has been included in patterns 7.x-1.0-rc2 release.
Comment #4
drozas