Changeset 724
- Timestamp:
- Jan 7, 2014, 5:10:17 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Translation/Save.php
r657 r724 120 120 $CompleteParts = 0; 121 121 $Completable = true; 122 $OnlyRank = true; 122 123 foreach($Group['Items'] as $GroupItem) 123 124 { … … 130 131 if(array_key_exists($GroupItem['Column'], $_POST)) 131 132 { 133 if (44 <> $GroupItem['Id']) $OnlyRank = false; 132 134 $Values .= ', "'.$_POST[$GroupItem['Column']].'"'; 133 135 $CompleteParts |= (1 << ($GroupItem['Sequence'] - 1)); … … 155 157 $Values .= ', '.$NewComplete.', '.$CompleteParts; 156 158 157 $this->Database->query('INSERT INTO `'.$Table.'` ('.$Columns.') VALUES ('.$Values.')'); 158 $LastID = $this->Database->insert_id; 159 160 $Output .= 'Text <a href="'.$this->System->Link('/form.php?group='. 161 $GroupId.'&ID='.$LastID).'">'.$LastID.'</a> ze skupiny <a href="TranslationList.php?group='. 162 $GroupId.'&user=0&action=filter">'.$TranslationTree[$GroupId]['Name'].'</a> uložen jako '. 163 $CompleteText[$NewComplete].'. Převzat z <a href="form.php?group='.$GroupId.'&ID='.$TextID.'">'.$TextID.'</a>.<br/>'; 164 $this->System->ModuleManager->Modules['Log']->WriteLog('Text <a href="'. 165 $this->System->Link('/form.php?group='.$GroupId.'&ID='.$LastID).'">'. 166 $LastID.'</a> ze skupiny <a href="TranslationList.php?group='. 167 $GroupId.'&user=0&text=&entry=&action=filter">'. 168 $TranslationTree[$GroupId]['Name'].'</a> uložen jako '.$CompleteText[$NewComplete]. 169 '. Převzat z <a href="form.php?group='.$GroupId.'&ID='.$TextID.'">'.$TextID.'</a>.', LOG_TYPE_TRANSLATION); 159 if (!$OnlyRank) 160 { 161 $this->Database->query('INSERT INTO `'.$Table.'` ('.$Columns.') VALUES ('.$Values.')'); 162 $LastID = $this->Database->insert_id; 163 164 $Output .= 'Text <a href="'.$this->System->Link('/form.php?group='. 165 $GroupId.'&ID='.$LastID).'">'.$LastID.'</a> ze skupiny <a href="TranslationList.php?group='. 166 $GroupId.'&user=0&action=filter">'.$TranslationTree[$GroupId]['Name'].'</a> uložen jako '. 167 $CompleteText[$NewComplete].'. Převzat z <a href="form.php?group='.$GroupId.'&ID='.$TextID.'">'.$TextID.'</a>.<br/>'; 168 $this->System->ModuleManager->Modules['Log']->WriteLog('Text <a href="'. 169 $this->System->Link('/form.php?group='.$GroupId.'&ID='.$LastID).'">'. 170 $LastID.'</a> ze skupiny <a href="TranslationList.php?group='. 171 $GroupId.'&user=0&text=&entry=&action=filter">'. 172 $TranslationTree[$GroupId]['Name'].'</a> uložen jako '.$CompleteText[$NewComplete]. 173 '. Převzat z <a href="form.php?group='.$GroupId.'&ID='.$TextID.'">'.$TextID.'</a>.', LOG_TYPE_TRANSLATION); 174 } 170 175 } 171 176 } -
trunk/includes/Version.php
r723 r724 6 6 // and system will need database update. 7 7 8 $Revision = 72 3; // Subversion revision8 $Revision = 724; // Subversion revision 9 9 $DatabaseRevision = 716; // Database structure revision 10 10 $ReleaseTime = '2014-01-07';
Note:
See TracChangeset
for help on using the changeset viewer.