Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4230D200B6C for ; Sun, 28 Aug 2016 15:06:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 40932160AC7; Sun, 28 Aug 2016 13:06:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8DF17160AB4 for ; Sun, 28 Aug 2016 15:06:21 +0200 (CEST) Received: (qmail 19875 invoked by uid 500); 28 Aug 2016 13:06:20 -0000 Mailing-List: contact notifications-help@ofbiz.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ofbiz.apache.org Delivered-To: mailing list notifications@ofbiz.apache.org Received: (qmail 19831 invoked by uid 99); 28 Aug 2016 13:06:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Aug 2016 13:06:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 7D2A92C014E for ; Sun, 28 Aug 2016 13:06:20 +0000 (UTC) Date: Sun, 28 Aug 2016 13:06:20 +0000 (UTC) From: "Jacques Le Roux (JIRA)" To: notifications@ofbiz.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (OFBIZ-7950) Improve consistency of service createEmployee MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sun, 28 Aug 2016 13:06:22 -0000 [ https://issues.apache.org/jira/browse/OFBIZ-7950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15443419#comment-15443419 ] Jacques Le Roux commented on OFBIZ-7950: ---------------------------------------- After a review, this looks good to me > Improve consistency of service createEmployee > --------------------------------------------- > > Key: OFBIZ-7950 > URL: https://issues.apache.org/jira/browse/OFBIZ-7950 > Project: OFBiz > Issue Type: Improvement > Components: humanres > Affects Versions: Trunk > Reporter: Montalbano Florian > Priority: Minor > Labels: consistency, create, employee, service > Attachments: OFBIZ-7950_proposition.patch > > > In the humanres component, we can create an employee through the form https://localhost:8443/humanres/control/NewEmployee . > This form has required fields that are not the same requirement than the service called when submitting the form. > The service called is createEmployee. > In the service, everything is declared optional but the postalAddContactMechPurpTypeId (which is set in the form as an hidden field). > This means we could create an Employee without forcing a telephone number or a primary address or even a first name. > But then, within the service, a check is done on the firstName and lastName parameters and if missing, an error shows up. > We could harmonize things a little. -- This message was sent by Atlassian JIRA (v6.3.4#6332)