mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
form: restrict filter to AppOption
This commit is contained in:
parent
f0f89d8f2a
commit
c439c47d67
1 changed files with 1 additions and 1 deletions
|
@ -309,7 +309,6 @@ class BaseInputOption(BaseOption):
|
|||
self.pattern = question.get("pattern", self.pattern)
|
||||
self.help = question.get("help")
|
||||
self.redact = question.get("redact", False)
|
||||
self.filter = question.get("filter", None)
|
||||
# .current_value is the currently stored value
|
||||
self.current_value = question.get("current_value")
|
||||
# .value is the "proposed" value which we got from the user
|
||||
|
@ -865,6 +864,7 @@ class AppOption(BaseChoicesOption):
|
|||
from yunohost.app import app_list
|
||||
|
||||
super().__init__(question, hooks)
|
||||
self.filter = question.get("filter", None)
|
||||
|
||||
apps = app_list(full=True)["apps"]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue