Skip to content

Commit c17445e

Browse files
authored
Merge branch '4.0-dev' into 4.0multilangsample2
2 parents 44a1f84 + 501dfad commit c17445e

File tree

329 files changed

+2141
-1446
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

329 files changed

+2141
-1446
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ALTER TABLE `#__update_sites` ADD COLUMN `checked_out` int(10) unsigned NOT NULL DEFAULT 0;
2+
ALTER TABLE `#__update_sites` ADD COLUMN `checked_out_time` datetime NULL DEFAULT NULL;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
INSERT INTO `#__menu` (`id`, `menutype`, `title`, `alias`, `note`, `path`, `link`, `type`, `published`, `parent_id`, `level`, `component_id`, `checked_out`, `checked_out_time`, `browserNav`, `access`, `img`, `template_style_id`, `params`, `lft`, `rgt`, `home`, `language`, `client_id`, `publish_up`, `publish_down`) VALUES (18, 'main', 'com_messages_manager', 'Private Messages', '', 'Messaging/Private Messages', 'index.php?option=com_messages&view=messages', 'component', 1, 10, 2, 15, 0, '0000-00-00 00:00:00', 0, 0, 'class:messages', 0, '', 17, 20, 0, '*', 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00');
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ALTER TABLE `#__update_sites` ADD COLUMN `checked_out` int(10) unsigned NOT NULL DEFAULT 0;
2+
ALTER TABLE `#__update_sites` ADD COLUMN `checked_out_time` timestamp without time zone DEFAULT NULL;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
INSERT INTO "#__menu" ("id", "menutype", "title", "alias", "note", "path", "link", "type", "published", "parent_id", "level", "component_id", "checked_out", "checked_out_time", "browserNav", "access", "img", "template_style_id", "params", "lft", "rgt", "home", "language", "client_id", "publish_up", "publish_down") VALUES (18, 'main', 'com_messages_manager', 'Private Messages', '', 'Messaging/Private Messages', 'index.php?option=com_messages&view=messages', 'component', 1, 10, 2, 15, 0, '1970-01-01 00:00:00', 0, 0, 'class:messages', 0, '', 17, 20, 0, '*', 1, '1970-01-01 00:00:00', '1970-01-01 00:00:00');

administrator/components/com_associations/View/Associations/HtmlView.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,7 @@ public function display($tpl = null)
8282
$link = Route::_('index.php?option=com_plugins&task=plugin.edit&extension_id=' . AssociationsHelper::getLanguagefilterPluginId());
8383
Factory::getApplication()->enqueueMessage(Text::sprintf('COM_ASSOCIATIONS_ERROR_NO_ASSOC', $link), 'warning');
8484
}
85-
elseif ($this->state->get('itemtype') == '' || $this->state->get('language') == '')
86-
{
87-
Factory::getApplication()->enqueueMessage(Text::_('COM_ASSOCIATIONS_NOTICE_NO_SELECTORS'), 'notice');
88-
}
89-
else
85+
elseif ($this->state->get('itemtype') != '' && $this->state->get('language') != '')
9086
{
9187
$type = null;
9288

administrator/components/com_associations/tmpl/associations/default.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@
3737
<div class="col-md-12">
3838
<div id="j-main-container" class="j-main-container">
3939
<?php echo LayoutHelper::render('joomla.searchtools.default', array('view' => $this)); ?>
40-
<?php if (empty($this->items)) : ?>
40+
<?php if ($this->state->get('itemtype') == '' || $this->state->get('language') == '') : ?>
41+
<div class="alert alert-info">
42+
<span class="fa fa-info-circle" aria-hidden="true"></span><span class="sr-only"><?php echo Text::_('INFO'); ?></span>
43+
<?php echo Text::_('COM_ASSOCIATIONS_NOTICE_NO_SELECTORS'); ?>
44+
</div>
45+
<?php elseif (empty($this->items)) : ?>
4146
<div class="alert alert-info">
4247
<span class="fa fa-info-circle" aria-hidden="true"></span><span class="sr-only"><?php echo Text::_('INFO'); ?></span>
4348
<?php echo Text::_('JGLOBAL_NO_MATCHING_RESULTS'); ?>

administrator/components/com_cache/tmpl/cache/default.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@
2626
<div class="col-md-12">
2727
<div id="j-main-container" class="j-main-container">
2828
<?php echo LayoutHelper::render('joomla.searchtools.default', ['view' => $this]); ?>
29-
<?php if (count($this->data) > 0) : ?>
29+
<?php if (empty($this->items)) : ?>
30+
<div class="alert alert-info">
31+
<span class="fa fa-info-circle" aria-hidden="true"></span><span class="sr-only"><?php echo Text::_('INFO'); ?></span>
32+
<?php echo Text::_('JGLOBAL_NO_MATCHING_RESULTS'); ?>
33+
</div>
34+
<?php else : ?>
3035
<table class="table">
3136
<caption id="captionTable" class="sr-only">
3237
<?php echo Text::_('COM_CACHE_TABLE_CAPTION'); ?>, <?php echo Text::_('JGLOBAL_SORTED_BY'); ?>

administrator/components/com_categories/Controller/CategoriesController.php

Lines changed: 5 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -96,65 +96,16 @@ public function rebuild()
9696
}
9797

9898
/**
99-
* Deletes and returns correctly.
99+
* Gets the URL arguments to append to a list redirect.
100100
*
101-
* @return void
101+
* @return string The arguments to append to the redirect URL.
102102
*
103-
* @since 3.1.2
103+
* @since __DEPLOY_VERSION__
104104
*/
105-
public function delete()
105+
protected function getRedirectToListAppend()
106106
{
107-
$this->checkToken();
108-
109-
// Get items to remove from the request.
110-
$cid = $this->input->get('cid', array(), 'array');
111107
$extension = $this->input->getCmd('extension', null);
112108

113-
if (!is_array($cid) || count($cid) < 1)
114-
{
115-
$this->app->enqueueMessage(Text::_($this->text_prefix . '_NO_ITEM_SELECTED'), 'warning');
116-
}
117-
else
118-
{
119-
// Get the model.
120-
/** @var \Joomla\Component\Categories\Administrator\Model\CategoryModel $model */
121-
$model = $this->getModel();
122-
123-
// Make sure the item ids are integers
124-
$cid = ArrayHelper::toInteger($cid);
125-
126-
// Remove the items.
127-
if ($model->delete($cid))
128-
{
129-
$this->setMessage(Text::plural($this->text_prefix . '_N_ITEMS_DELETED', count($cid)));
130-
}
131-
else
132-
{
133-
$this->setMessage($model->getError());
134-
}
135-
}
136-
137-
$this->setRedirect(Route::_('index.php?option=' . $this->option . '&extension=' . $extension, false));
138-
}
139-
140-
/**
141-
* Check in of one or more records.
142-
*
143-
* Overrides \JControllerAdmin::checkin to redirect to URL with extension.
144-
*
145-
* @return boolean True on success
146-
*
147-
* @since 3.6.0
148-
*/
149-
public function checkin()
150-
{
151-
// Process parent checkin method.
152-
$result = parent::checkin();
153-
154-
// Override the redirect Uri.
155-
$redirectUri = 'index.php?option=' . $this->option . '&view=' . $this->view_list . '&extension=' . $this->input->get('extension', '', 'CMD');
156-
$this->setRedirect(Route::_($redirectUri, false), $this->message, $this->messageType);
157-
158-
return $result;
109+
return '&extension=' . $extension;
159110
}
160111
}

administrator/components/com_categories/Field/CategoryeditField.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ protected function getInput()
364364

365365
$data['options'] = $this->getOptions();
366366
$data['allowCustom'] = $this->allowAdd;
367+
$data['customPrefix'] = $this->customPrefix;
367368
$data['refreshPage'] = (boolean) $this->element['refresh-enabled'];
368369
$data['refreshCatId'] = (string) $this->element['refresh-cat-id'];
369370
$data['refreshSection'] = (string) $this->element['refresh-section'];

administrator/components/com_categories/layouts/joomla/form/field/categoryedit.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
* @var array $options Options available for this field.
4747
* @var array $inputType Options available for this field.
4848
* @var string $accept File types that are accepted.
49+
* @var string $customPrefix Optional prefix for new categories.
4950
*/
5051

5152
$html = array();
@@ -72,9 +73,9 @@
7273
{
7374
$attr2 .= ' allow-custom';
7475

75-
if ($this->customPrefix !== '')
76+
if ($customPrefix !== '')
7677
{
77-
$attr2 .= ' data-custom_value_prefix="' . $this->customPrefix . '" ';
78+
$attr2 .= ' new-item-prefix="' . $customPrefix . '" ';
7879
}
7980
}
8081

0 commit comments

Comments
 (0)