2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-09 20:57:11 +00:00

FB_CALLMONITOR: show a "not found" popup when get command "search" fails (Forum: #85761)

git-svn-id: https://svn.fhem.de/fhem/trunk@16483 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markusbloch 2018-03-25 09:42:35 +00:00
parent 163abbf792
commit 1121b42709
2 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,7 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it.
- feature: 72_FB_CALLMONITOR: show a "not found" popup, when reverse search
via get command fails
- feature: 93_DbRep: V7.15.0, new command sqlSpecial
- bugfix: 74_XiaomiBTLSens: fix commandref entrys
- feature: 49_SSCam: V3.5.0, new get command listPresets

View File

@ -165,7 +165,11 @@ FB_CALLMONITOR_Get($@)
if($arguments[1] eq "search" and int(@arguments) >= 3)
{
return FB_CALLMONITOR_reverseSearch($hash, FB_CALLMONITOR_normalizePhoneNumber($hash, join '', @arguments[2..$#arguments]));
my $number = FB_CALLMONITOR_normalizePhoneNumber($hash, join '', @arguments[2..$#arguments]);
my $result = FB_CALLMONITOR_reverseSearch($hash, $number);
return $result if(defined($result));
return "no reverse search result found for $number";
}
elsif($arguments[1] eq "showPhonebookIds" and exists($hash->{helper}{PHONEBOOK_NAMES}))
{