]> git.proxmox.com Git - pmg-api.git/commit
use otype() sub instead of $self->{otype}
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 11 Sep 2017 11:23:02 +0000 (13:23 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 12 Sep 2017 05:06:08 +0000 (07:06 +0200)
commit45201fbf087cfcf168f9e17cc7bf5680f4cd9a44
tree9ceb9750019e73affaffdc1542861319285c4243
parent2719ef949e4ad4bdccc67da53ea5ff103cea835d
use otype() sub instead of $self->{otype}

the sub otype() is always the one defined in the class we instantiated,
but $self->{otype} is set at creation and does not work if we do not set
it in the 'new' sub of the object (for example in ContentTypeFilter.pm)

so now we get the correct otype from the current class

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
PMG/RuleDB/Object.pm