From 71add093e0509619802f39c01badf4764652fc86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Bernigaud?= Date: Wed, 6 May 2015 11:02:14 +0200 Subject: [PATCH] Fixes #3255 Have a clear message in FAI when there are no release --- fai/admin/fai/class_faiManagement.inc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/fai/admin/fai/class_faiManagement.inc b/fai/admin/fai/class_faiManagement.inc index 8203374..b5a328b 100644 --- a/fai/admin/fai/class_faiManagement.inc +++ b/fai/admin/fai/class_faiManagement.inc @@ -127,6 +127,24 @@ class faiManagement extends simpleManagement ); } + function execute () + { + if (empty($this->headpage->bases)) { + return $this->getHeader(). + '
'. + '
'. + '

'. + '{t}Warning{/t}'. + _('There are no FAI branches'). + '

'. + '
'. + _(' Please add at least one repository service to create those.'). + '
'. + '
'; + } + return parent::execute(); + } + /*! \brief Returns a list of all releases for useable for drop down boxes. */ static function getReleaseList() -- 1.7.10.4