Project

General

Profile

« Previous | Next » 

Revision 86f28390

Added by Doktor Notor over 9 years ago

Always honor the required tag in package XML fields

Dunno whose idea it was to restrict this to input. WTH really.

View differences:

src/usr/local/www/pkg_edit.php
151 151
	$reqfields = array();
152 152
	$reqfieldsn = array();
153 153
	foreach ($pkg['fields']['field'] as $field) {
154
		if (($field['type'] == 'input') && isset($field['required'])) {
154
		if (isset($field['required'])) {
155 155
			if ($field['fieldname']) {
156 156
				$reqfields[] = $field['fieldname'];
157 157
			}

Also available in: Unified diff