Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 1224 | Rev 1320 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1224 Rev 1225
Línea 154... Línea 154...
154
                    $behavior->company_id = $currentCompany->id;
154
                    $behavior->company_id = $currentCompany->id;
155
                }
155
                }
Línea 156... Línea 156...
156
 
156
 
Línea 157... Línea 157...
157
                $behaviorMapper = BehaviorsMapper::getInstance($this->adapter);
157
                $behaviorMapper = BehaviorsMapper::getInstance($this->adapter);
158
 
-
 
Línea 159... Línea 158...
159
                $recordExists = $currentCompany ? $behaviorMapper->fetchOneByDescription($dataPost['description'], $currentCompany->id) :
158
 
Línea 160... Línea 159...
160
                        $behaviorMapper->fetchOneByDescriptionDefault($dataPost['description']);
159
                $recordExists = $behaviorMapper->fetchOneByDescription($dataPost['description'], $currentCompany ? $currentCompany->id : null);
161
 
160
 
Línea 171... Línea 170...
171
 
170
 
Línea 172... Línea 171...
172
                    if ($result) {
171
                    if ($result) {
Línea 173... Línea 172...
173
 
172
 
174
                        $this->logger->info('Se agrego la conducta observable ' . $behavior->description, ['user_id' => $currentUser->id, 'ip' => Functions::getUserIP()]);
-
 
Línea 175... Línea 173...
175
 
173
                        $this->logger->info('Se agrego la conducta observable ' . $behavior->description, ['user_id' => $currentUser->id, 'ip' => Functions::getUserIP()]);
176
                        $recordExists = $currentCompany ? $behaviorMapper->fetchOneByDescription($dataPost['description'], $currentCompany->id) :
174
 
177
                        $behaviorMapper->fetchOneByDescriptionDefault($dataPost['description']);
175
                        $recordExists = $behaviorMapper->fetchOneByDescription($dataPost['description'], $currentCompany ? $currentCompany->id : null);
178
 
176