Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision d5a003cf

Von Moritz Bunkus vor fast 13 Jahren hinzugefügt

  • ID d5a003cf54b65b18d75401d2b7fc27ae6184efe0
  • Vorgänger 5efc0f87
  • Nachfolger b88b33d1

CVars: Kein Manager-Arg "config.module" verwenden

Unterschiede anzeigen:

SL/DB/Helper/CustomVariables.pm
44 44
  my ($caller_package, %params) = @_;
45 45

  
46 46
  my @module_filter = $params{module} ?
47
    ("config.module" => $params{module}) :
47
    ("config_id" => [ \"(SELECT custom_variable_configs.id FROM custom_variable_configs WHERE custom_variable_configs.module = '$params{module}')" ]) :
48 48
    ();
49 49

  
50 50
  $caller_package->meta->add_relationships(
......
52 52
      type         => 'one to many',
53 53
      class        => 'SL::DB::CustomVariable',
54 54
      column_map   => { ($params{id} || 'id') => 'trans_id' },
55
      manager_args => { with_objects => 'config' },
56 55
      query_args   => [ sub_module => $params{sub_module}, @module_filter ],
57 56
    }
58 57
  );

Auch abrufbar als: Unified diff