Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bring in line with change on providence #97

Merged
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
9 changes: 8 additions & 1 deletion app/models/ca_site_pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@
'DISPLAY_FIELD' => array('ca_locales.name', 'ca_locales.language', 'ca_locales.country'),
'LABEL' => _t('Locale'), 'DESCRIPTION' => _t('Locale of page'),
),
'rank' => array(
'FIELD_TYPE' => FT_NUMBER, 'DISPLAY_TYPE' => DT_FIELD,
'DISPLAY_WIDTH' => 10, 'DISPLAY_HEIGHT' => 1,
'IS_NULL' => false,
'DEFAULT' => '',
'LABEL' => _t('Sort order'), 'DESCRIPTION' => _t('Sort order'),
),
'access' => array(
'FIELD_TYPE' => FT_NUMBER, 'DISPLAY_TYPE' => DT_SELECT,
'DISPLAY_WIDTH' => 100, 'DISPLAY_HEIGHT' => 4,
Expand Down Expand Up @@ -179,7 +186,7 @@ class ca_site_pages extends BundlableLabelableBaseModelWithAttributes {

# If you want to order records arbitrarily, add a numeric field to the table and place
# its name here. The generic list scripts can then use it to order table records.
protected $RANK = null;
protected $RANK = 'rank';


# ------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion app/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
define('__CollectiveAccess__', '2.0');

# Schema revision
define('__CollectiveAccess_Schema_Rev__', 194);
define('__CollectiveAccess_Schema_Rev__', 195);

# Release type
define('__CollectiveAccess_Release_Type__', 'RELEASE');