From c7c43f1528b9b968a95cd1755e15ace57b3e474a Mon Sep 17 00:00:00 2001 From: Exodus4D Date: Sun, 14 Aug 2016 17:19:42 +0200 Subject: [PATCH] - fixed broken signature description update for non-WH system signatures, closed #253 --- app/main/controller/api/signature.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/main/controller/api/signature.php b/app/main/controller/api/signature.php index 46386c12..1f5e044b 100644 --- a/app/main/controller/api/signature.php +++ b/app/main/controller/api/signature.php @@ -146,8 +146,10 @@ class Signature extends Controller\AccessController{ // systemId should not be updated unset( $data['systemId'] ); - // description should not be updated - unset( $data['description'] ); + // description should not overwrite existing description + if( !empty($signature->description) ){ + unset( $data['description'] ); + } // prevent some data from overwrite manually changes // wormhole typeID can not figured out/saved by the sig reader dialog