Skip to content

Commit

Permalink
Minor logic issue regarding field listing
Browse files Browse the repository at this point in the history
  • Loading branch information
Stikki committed May 28, 2015
1 parent ddbaa34 commit 8c49b8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Pages2JSON.module
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class Pages2JSON extends WireData implements Module, ConfigurableModule
foreach(self::$static_fields as $name)
if(!ctype_digit("$name")) $f->addOption($name);

foreach(wire('fields') as $field) {
foreach($template->fields as $field) {

if($field->type instanceof FieldtypeFieldsetOpen || $field->type instanceof FieldtypePassword) continue;
$f->addOption($field->name);
Expand Down

0 comments on commit 8c49b8e

Please sign in to comment.