However if i add the same line in custom/modules/modulename/metadata/detailviewdefs.php, the popup that shows for an in-line edit, does not apply the filter.
EDIT:—ahh… i think i misunderstood you sorry… do you mean add it to popupdefs.php?
What i am trying to achieve is that the initial filter is different when called from each parent module - for example, when selecting and account from the ‘sites’ module the initial filter sets the account type to ‘council’, whereas when selecting the account from a ‘project’ module the initial filter is the account type to ‘client’