fixed not working link in notifications / subscribtions, if path contains eg. a space

caused by unnecessary appended path=... url parameter breaking WebDAV, added new config to NOT add it, as not setting id causes signature to fail
This commit is contained in:
Ralf Becker 2013-03-20 09:55:30 +00:00
parent 9ae89a0844
commit 7cc358b526

View File

@ -868,7 +868,7 @@ abstract class bo_tracking
{
if (($link = $this->get_config('link',$data,$old)))
{
if (strpos($link,$this->id_field.'=') === false && isset($data[$this->id_field]))
if (!$this->get_config('link_no_id', $data) && strpos($link,$this->id_field.'=') === false && isset($data[$this->id_field]))
{
$link .= strpos($link,'?') === false ? '?' : '&';
$link .= $this->id_field.'='.$data[$this->id_field];