Skip to content

Commit

Permalink
Fix the location node setter properly
Browse files Browse the repository at this point in the history
  • Loading branch information
mastacontrola committed Jan 4, 2017
1 parent 9de3ed4 commit b27a006
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/web/lib/fog/system.class.php
Expand Up @@ -53,7 +53,7 @@ private static function _versionCompare()
public function __construct()
{
self::_versionCompare();
define('FOG_VERSION', '1.3.0-RC-2');
define('FOG_VERSION', '1.3.1-RC-2');
define('FOG_SCHEMA', 245);
define('FOG_BCACHE_VER', 111);
define('FOG_SVN_REVISION', 6052);
Expand Down
12 changes: 11 additions & 1 deletion packages/web/lib/plugins/location/hooks/changeitems.hook.php
Expand Up @@ -169,8 +169,18 @@ public function bootItemSettings($arguments)
),
'locationID'
);
$Locations = self::getSubObjectIDs(
'Location',
array(
'id' => $Locations
)
);
$find = array(
'hostID' => $arguments['Host']->get('id'),
'locationID' => $Locations
);
foreach ((array)self::getClass('LocationAssociationManager')
->find(array('locationID' => $Locations)) as $Location
->find($find) as $Location
) {
if (!$Location->isTFTP()) {
continue;
Expand Down
2 changes: 1 addition & 1 deletion packages/web/management/languages/messages.pot
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-01-03 20:51-0500\n"
"POT-Creation-Date: 2017-01-03 21:45-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down

0 comments on commit b27a006

Please sign in to comment.