Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 1f024d69

Von Moritz Bunkus vor fast 10 Jahren hinzugefügt

  • ID 1f024d692e4c03fca4747a9a224ef8587c6b9819
  • Vorgänger bdb4582b
  • Nachfolger 851362c1

Pflichtenhefte: Fehler beim Anlegen von Versionen richtig abfangen

Unterschiede anzeigen:

SL/Controller/RequirementSpecVersion.pm
72 72
  return $self->js->error(@errors)->render($self) if @errors;
73 73

  
74 74
  my $db     = $self->requirement_spec->db;
75
  my @result = $self->version($self->requirement_spec->create_version(%attributes));
75
  my @result = $self->requirement_spec->create_version(%attributes);
76 76

  
77 77
  if (!@result) {
78 78
    $::lxdebug->message(LXDebug::WARN(), "Error: " . $db->error);
79 79
    return $self->js->error($::locale->text('Saving failed. Error message from the database: #1'), $db->error)->render($self);
80 80
  }
81 81

  
82
  $self->version($result[0]);
82 83
  my $version_info_html = $self->render('requirement_spec/_version',     { output => 0 }, requirement_spec => $self->requirement_spec);
83 84
  my $version_list_html = $self->render('requirement_spec_version/list', { output => 0 });
84 85

  

Auch abrufbar als: Unified diff