Added edit indication to workflow
This commit is contained in:
@@ -24,12 +24,17 @@ class Address extends mfBaseModel {
|
||||
|
||||
}
|
||||
|
||||
public function getCompanyOrName() {
|
||||
public function getCompanyOrName($returnParent = false) {
|
||||
if($returnParent && $this->parent_id) {
|
||||
return $this->getProperty("parent")->getCompanyOrName(true);
|
||||
}
|
||||
|
||||
if($this->company) {
|
||||
return $this->company;
|
||||
}
|
||||
return $this->getFullName();
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function loadAddresstypes() {
|
||||
|
||||
Reference in New Issue
Block a user