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:

Patterns - bug URI

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.

CommentFileSizeAuthor
#2 issue-1826922.patch854 bytesdrozas
import-uri-mandatory.png145.95 KBdrozas

Comments

drozas’s picture

Status: Needs work » Active
drozas’s picture

Status: Active » Patch (to be ported)
StatusFileSize
new854 bytes

Hi 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

drozas’s picture

Status: Patch (to be ported) » Fixed

I'll mark this as fixed, the patch has been included in patterns 7.x-1.0-rc2 release.

drozas’s picture

Status: Fixed » Closed (fixed)