Skip to content
Permalink
Browse files

не сохраняются TV при редактировании

  • Loading branch information...
Pathologic committed Nov 30, 2016
1 parent 9490359 commit 69d420b3fabe09973c81d1e2b0cde6cf132e3f1a
Showing with 1 addition and 1 deletion.
  1. +1 −1 assets/lib/MODxAPI/modResource.php
@@ -604,7 +604,7 @@ public function save($fire_events = false, $clearCache = false)
$result = $this->query("SELECT `tmplvarid` FROM {$this->makeTable('site_tmplvar_contentvalues')} WHERE `contentid`={$this->id} AND `tmplvarid` IN ({$ids})");
$existedTVs = $this->modx->db->getColumn('tmplvarid',$result);
foreach ($existedTVs as $id) {
$_updateTVs[] = $_insertTVs[$id];
$_updateTVs[$id] = $_insertTVs[$id];
unset($_insertTVs[$id]);
}
}

0 comments on commit 69d420b

Please sign in to comment.
You can’t perform that action at this time.