| 
                                
                                    @@ 1048-1052 (lines=5) @@
                                 | 
                            
                                                            
                                    | 1045 | 
                                     | 
                                                    $this->notifyStageChange($wsAccess, $stageId, $table, $id, $comment, $dataHandler, $notificationAlternativeRecipients);  | 
                                
                                                            
                                    | 1046 | 
                                     | 
                                                }  | 
                                
                                                            
                                    | 1047 | 
                                     | 
                                                // Write to log with stageId -20  | 
                                
                                                            
                                    | 1048 | 
                                     | 
                                                if ($dataHandler->enableLogging) { | 
                                
                                                            
                                    | 1049 | 
                                     | 
                                                    $propArr = $dataHandler->getRecordProperties($table, $id);  | 
                                
                                                            
                                    | 1050 | 
                                     | 
                                                    $pid = $propArr['pid'];  | 
                                
                                                            
                                    | 1051 | 
                                     | 
                                                    $dataHandler->log($table, $id, 0, 0, 0, 'Stage for record was changed to ' . $stageId . '. Comment was: "' . substr($comment, 0, 100) . '"', -1, [], $dataHandler->eventPid($table, $id, $pid));  | 
                                
                                                            
                                    | 1052 | 
                                     | 
                                                }  | 
                                
                                                            
                                    | 1053 | 
                                     | 
                                                $dataHandler->log($table, $id, 6, 0, 0, 'Published', 30, ['comment' => $comment, 'stage' => $stageId]);  | 
                                
                                                            
                                    | 1054 | 
                                     | 
                                     | 
                                
                                                            
                                    | 1055 | 
                                     | 
                                                // Clear cache:  | 
                                
                                                                                
                                 | 
                                
                                    @@ 738-742 (lines=5) @@
                                 | 
                            
                                                            
                                    | 735 | 
                                     | 
                                                            ['uid' => (int)$id]  | 
                                
                                                            
                                    | 736 | 
                                     | 
                                                        );  | 
                                
                                                            
                                    | 737 | 
                                     | 
                                     | 
                                
                                                            
                                    | 738 | 
                                     | 
                                                    if ($dataHandler->enableLogging) { | 
                                
                                                            
                                    | 739 | 
                                     | 
                                                        $propertyArray = $dataHandler->getRecordProperties($table, $id);  | 
                                
                                                            
                                    | 740 | 
                                     | 
                                                        $pid = $propertyArray['pid'];  | 
                                
                                                            
                                    | 741 | 
                                     | 
                                                        $dataHandler->log($table, $id, 0, 0, 0, 'Stage for record was changed to ' . $stageId . '. Comment was: "' . substr($comment, 0, 100) . '"', -1, [], $dataHandler->eventPid($table, $id, $pid));  | 
                                
                                                            
                                    | 742 | 
                                     | 
                                                    }  | 
                                
                                                            
                                    | 743 | 
                                     | 
                                                    // TEMPORARY, except 6-30 as action/detail number which is observed elsewhere!  | 
                                
                                                            
                                    | 744 | 
                                     | 
                                                    $dataHandler->log($table, $id, 6, 0, 0, 'Stage raised...', 30, ['comment' => $comment, 'stage' => $stageId]);  | 
                                
                                                            
                                    | 745 | 
                                     | 
                                                    if ((int)$stat['stagechg_notification'] > 0) { |