Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 1138 Rev 1224
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 158... Línea 159...
158
 
159
                $recordExists = $currentCompany ? $behaviorMapper->fetchOneByDescription($dataPost['description'], $currentCompany->id) :
Línea 159... Línea 160...
159
                $recordExists = $behaviorMapper->fetchOneByDescription($dataPost['description'], $currentCompany ? $currentCompany->id : null);
160
                        $behaviorMapper->fetchOneByDescriptionDefault($dataPost['description']);
160
 
161
 
Línea 170... Línea 171...
170
 
171
 
Línea 171... Línea 172...
171
                    if ($result) {
172
                    if ($result) {
Línea 172... Línea 173...
172
 
173
 
-
 
174
                        $this->logger->info('Se agrego la conducta observable ' . $behavior->description, ['user_id' => $currentUser->id, 'ip' => Functions::getUserIP()]);
Línea 173... Línea 175...
173
                        $this->logger->info('Se agrego la conducta observable ' . $behavior->description, ['user_id' => $currentUser->id, 'ip' => Functions::getUserIP()]);
175
 
174
 
176
                        $recordExists = $currentCompany ? $behaviorMapper->fetchOneByDescription($dataPost['description'], $currentCompany->id) :
175
                        $recordExists = $behaviorMapper->fetchOneByDescription($dataPost['description'], $currentCompany ? $currentCompany->id : null);
177
                        $behaviorMapper->fetchOneByDescriptionDefault($dataPost['description']);
176
 
178