Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 3200 Rev 3201
Línea 150... Línea 150...
150
                            $status = '';
150
                            $status = '';
151
                            break;
151
                            break;
152
                    }
152
                    }
Línea 153... Línea 153...
153
 
153
 
-
 
154
                    if($record['status'] == Company::STATUS_ACTIVE) {
-
 
155
                        
154
                    if($record['status'] == Company::STATUS_ACTIVE) {
156
                        $link_view = $this->url()->fromRoute('company/view', ['id' => $record['uuid'] ]);
155
                        $companyUser = $companyUserMapper->fetchOneByCompanyIdAndUserId($record['id'], $currentUser->id);    
157
                        $companyUser = $companyUserMapper->fetchOneByCompanyIdAndUserId($record['id'], $currentUser->id);    
156
                        if($companyUser && $companyUser->status == CompanyUser::STATUS_ACCEPTED && $companyUser->backend == CompanyUser::BACKEND_YES ) {
158
                        if($companyUser && $companyUser->status == CompanyUser::STATUS_ACCEPTED && $companyUser->backend == CompanyUser::BACKEND_YES ) {
157
                            $link_my_company = $this->url()->fromRoute('backend/signin-company', ['id' => $record['uuid'] ]);
159
                            $link_my_company = $this->url()->fromRoute('backend/signin-company', ['id' => $record['uuid'] ]);
158
                        } else {
160
                        } else {
159
                            $link_my_company = '';
161
                            $link_my_company = '';
160
                        } 
162
                        } 
161
                    } else {
163
                    } else {
-
 
164
                        $link_my_company = '';
162
                        $link_my_company = '';
165
                        $link_view = '';
Línea 163... Línea 166...
163
                    }
166
                    }
Línea 164... Línea 167...
164
 
167
 
165
                    $item = [
168
                    $item = [
166
               
169
               
167
                        'name' => $record['name'],
170
                        'name' => $record['name'],
168
                        'status' => $status,
171
                        'status' => $status,
169
                        'image' => $this->url()->fromRoute('storage', ['type' => 'company', 'code' => $record['uuid'], 'filename' => $record['image']]),
172
                        'image' => $this->url()->fromRoute('storage', ['type' => 'company', 'code' => $record['uuid'], 'filename' => $record['image']]),
Línea 170... Línea 173...
170
                        'link_my_company' =>  $link_my_company,
173
                        'link_my_company' =>  $link_my_company,
171
                        'link_view' => $this->url()->fromRoute('company/view', ['id' => $record['uuid'] ]),
174
                        'link_view' => $link_view,