Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions administrator/components/com_menus/models/forms/item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
<fieldset>
<field
name="id"
type="text"
class="readonly"
type="hidden"
label="JGLOBAL_FIELD_ID_LABEL"
description="JGLOBAL_FIELD_ID_DESC"
class="readonly"
default="0"
filter="int"
readonly="true"/>
readonly="true"
/>

<field
name="title"
Expand Down
4 changes: 2 additions & 2 deletions administrator/components/com_menus/views/item/tmpl/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,15 @@
<?php
// Set main fields.
$this->fields = array(
'id',
'menutype',
'parent_id',
'menuordering',
'published',
'home',
'access',
'language',
'note'

'note',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just by code review (i.e. not tested...): are you sure that comma after the last array element is correct?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, I found this: http://stackoverflow.com/questions/2829581/why-do-php-array-examples-leave-a-trailing-comma

In essence, valid syntax, although unusual, and good for convenience in case you wish to add one more element in the code at a later time.

);

if ($this->item->type != 'component')
Expand Down