Projekt

Obecné

Profil

« Předchozí | Další » 

Revize a0d2a5ea

Přidáno uživatelem Jan Palcút před téměř 6 roky(ů)

Re #7507 změna funkce pro ukladani dat transliterace

Zobrazit rozdíly:

app/model/facade/TransliterationFacade.php
228 228

  
229 229
                        } else
230 230
                        {
231
                            unset($values->{LineRepository::COLUMN_ID});
232

  
231 233
                            $surface = $this->surfaceRepository->fetchSurface($id, $objectTypeId, $surfaceTypeId);
232 234

  
233 235
                            if ($surface === FALSE)
......
241 243
                                );
242 244
                            }
243 245

  
244
                            $values->{LineRepository::COLUMN_SURFACE_ID} = $surface->{SurfaceRepository::COLUMN_ID};
246
                            $surfaceId = $this->context->getInsertId(SurfaceRepository::TABLE_NAME);
247

  
248
                            $values->{LineRepository::COLUMN_SURFACE_ID} = !empty($surfaceId) ? $surfaceId : $surface->{SurfaceRepository::COLUMN_ID};
249

  
245 250
                            $this->lineRepository->insert($values);
246 251
                        }
247 252
                    } catch (\Exception $exception)

Také k dispozici: Unified diff